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 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 Readonly 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

Readonly domHelper

domHelper: DOMHelper

A helper class to provide DOM access APIs

Readonly environment

environment: EditorEnvironment

Editor running environment

logicalRoot

logicalRoot: HTMLDivElement

The content DIV element that operations should be applied to By default, the logical root is the same as the physical root, but if nested editors are used, the logical root changes to that of the inner editor

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 physicalRoot

physicalRoot: HTMLDivElement

The root DIV element of this editor (formerly contentDiv)

Readonly plugins

plugins: EditorPlugin[]

An array of editor plugins.

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

Methods

cache

cache:

contextMenu

contextMenu:

copyPaste

copyPaste:

domEvent

domEvent:

entity

entity:

format

format:

lifecycle

lifecycle:

selection

selection:

undo

undo:

Generated using TypeDoc