Class EditorErrorEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
com.wontlost.ckeditor.event.EditorErrorEvent
All Implemented Interfaces:
Serializable

public class EditorErrorEvent extends com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
编辑器错误事件。 当编辑器遇到错误时触发,包括初始化错误、运行时错误等。

使用示例:

editor.addEditorErrorListener(event -> {
    EditorError error = event.getError();
    logger.error("Editor error [{}]: {}", error.getCode(), error.getMessage());
    if (error.isRecoverable()) {
        // 尝试恢复
    }
});
See Also:
  • Constructor Details

    • EditorErrorEvent

      public EditorErrorEvent(VaadinCKEditor source, boolean fromClient, EditorErrorEvent.EditorError error)
      创建编辑器错误事件
      Parameters:
      source - 触发事件的编辑器组件
      fromClient - 事件是否来自客户端
      error - 错误详情
  • Method Details