Lite Editor

Events

If you have to customize the editor, you may want to hook some actions and add original functions

You can easily hook events like below.

editor.on('render', () => {
    /* write some codes here */
});

This is the list of the event you can hook.

  • render after updating the editor
  • prerender before updating the editor
  • insertTag after inserting a tag
  • unwrapTag after unwrapping a tag
  • redo after redo
  • undo after undo
  • paste after pasting
Getting Started
API