Class EditorErrorEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
com.wontlost.ckeditor.event.EditorErrorEvent
- All Implemented Interfaces:
Serializable
编辑器错误事件。
当编辑器遇到错误时触发,包括初始化错误、运行时错误等。
使用示例:
editor.addEditorErrorListener(event -> {
EditorError error = event.getError();
logger.error("Editor error [{}]: {}", error.getCode(), error.getMessage());
if (error.isRecoverable()) {
// 尝试恢复
}
});
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class编辑器错误详情static enum错误严重程度 -
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionEditorErrorEvent(VaadinCKEditor source, boolean fromClient, EditorErrorEvent.EditorError error) 创建编辑器错误事件 -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class EventObject
toString
-
Constructor Details
-
EditorErrorEvent
public EditorErrorEvent(VaadinCKEditor source, boolean fromClient, EditorErrorEvent.EditorError error) 创建编辑器错误事件- Parameters:
source- 触发事件的编辑器组件fromClient- 事件是否来自客户端error- 错误详情
-
-
Method Details
-
getError
-