Call an editing callback with adding undo snapshots around, and trigger a ContentChanged event if change source is specified. Undo snapshot will not be added if this call is nested inside another addUndoSnapshot() call.
Attach a DOM event to the editor content DIV
Create a DocumentFragment for paste from a ClipboardData
Ensure user will type into a container element rather than into the editor content DIV directly
Focus to editor. If there is a cached selection range, use it as current selection
Get current editor content as HTML string
Get the pendable format such as underline and bold
Get current or cached selection range
Get current or cached selection range
Get style based format state from current selection, including font name/size and colors
Check if the editor has focus now
Insert a DOM node into editor content
Restore an undo snapshot into editor
Select content according to the given information. There are a bunch of allowed combination of parameters. See IEditor.select for more details
Select a image and save data of the selected range
Change the editor selection to the given range
Select a table and save data of the selected range
Set HTML content to this editor. All existing content will be replaced. A ContentChanged event will be triggered if triggerContentChangedEvent is set to true
Switch the Shadow Edit mode of editor On/Off
Edit and transform color of elements between light mode and dark mode
Trigger a plugin event
Generated using TypeDoc
The interface for the map of core API. Editor can call call API from this map under EditorCore object