Interface

ElementApi (core/editor/utils)

@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin

interface

Interface describing an editor that replaced a DOM element (was "initialized on an element").

Such an editor should provide a method to update the replaced element with the current data.

Filtering

Properties

  • readonly

    sourceElement : HTMLElement

    The element on which the editor has been initialized.

Methods

  • updateSourceElement( data )

    Updates the editor source element's content with the data.

    Parameters

    data : String

    The data that should be used to update the source element. By default, it is taken directly from the existing editor instance.