light, dark or a custom theme, styled through the uf-{theme} class
Runs a command in the current mode.
Optionalpayload: Record<string, any>Replaces the handler of a hook, like addImageBlobHook.
Moves the cursor to the start of a line (1-based); in WYSIWYG, each text block, table row and code line is a line.
The cursor's line (1-based), counted as in moveCursorTo().
focus applies when the cursor moves to the end.
Sets the content from HTML, converted to markdown; focus applies when the cursor moves to the end.
The content as HTML, sanitized, with widgets as they render outside the WYSIWYG editor.
The range and type of the node at the position, or at the cursor.
Optionalpos: EditorPosShows an element above or below the cursor, or the given position, like a popup.
Optionalpos: EditorPosCSS height, toolbar included, e.g. 300px, 100% or auto
CSS min-height, e.g. 200px
OptionalwithoutFocus: booleanScrolls the current mode's editing area.
Clears the content.
The elements an application places in the page when it uses EditorCore without the default UI.
Converts a position from one mode's format to the other's.
StaticfactoryCreates a Viewer with options.viewer, an EditorCore otherwise.
StaticsetRegisters the UI texts of a language under its codes.
The editor without the default UI: it creates the editors and the preview for the application to place.