Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the core data structure of an editor

Hierarchy

Index

Properties

Readonly api

Core API map of this editor

Readonly contentDiv

contentDiv: HTMLDivElement

The content DIV element of this editor

darkColorHandler

darkColorHandler: DarkColorHandler

Dark model handler for the editor, used for variable-based solution. If keep it null, editor will still use original dataset-based dark mode solution.

Optional disposeErrorHandler

disposeErrorHandler: (plugin: EditorPlugin, error: Error) => void

Type declaration

    • A callback to be invoked when any exception is thrown during disposing editor

      Parameters

      • plugin: EditorPlugin

        The plugin that causes exception

      • error: Error

        The error object we got

      Returns void

getVisibleViewport

getVisibleViewport: () => Rect

Type declaration

    • Retrieves the Visible Viewport of the editor.

      Returns Rect

Optional imageSelectionBorderColor

imageSelectionBorderColor: string

Color of the border of a selectedImage. Default color: '#DB626C'

Readonly originalApi

originalApi: CoreApiMap

Original API map of this editor. Overridden core API can use API from this map to call the original version of core API.

Readonly plugins

plugins: EditorPlugin[]

An array of editor plugins.

sizeTransformer

sizeTransformer: SizeTransformer
deprecated

Use zoomScale instead

Readonly trustedHTMLHandler

trustedHTMLHandler: TrustedHTMLHandler

A handler to convert HTML string to a trust HTML string. By default it will just return the original HTML string directly. To override, pass your own trusted HTML handler to EditorOptions.trustedHTMLHandler

zoomScale

zoomScale: number

Methods

copyPaste

copyPaste:

domEvent

domEvent:

edit

edit:

entity

entity:

lifecycle

lifecycle:

pendingFormatState

pendingFormatState:

undo

undo:

Generated using TypeDoc