Class EditorReadyEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
com.wontlost.ckeditor.event.EditorReadyEvent
- All Implemented Interfaces:
Serializable
Editor ready event.
Fired when the CKEditor instance is fully initialized and ready to accept user input.
Usage example:
editor.addEditorReadyListener(event -> {
// Editor is ready, safe to perform operations
event.getSource().focus();
});
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionEditorReadyEvent(VaadinCKEditor source, boolean fromClient, long initializationTimeMs) Create an editor ready event. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the editor initialization time.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class EventObject
toString
-
Constructor Details
-
EditorReadyEvent
Create an editor ready event.- Parameters:
source- the editor component that fired the eventfromClient- whether the event originated from the clientinitializationTimeMs- editor initialization time in milliseconds
-
-
Method Details
-
getInitializationTimeMs
public long getInitializationTimeMs()Get the editor initialization time.- Returns:
- initialization time in milliseconds
-