Module

core/editor/utils/securesourceelement

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

module

Filtering

Functions

  • secureSourceElement( editor, sourceElement ) → void

    Marks the source element on which the editor was initialized. This prevents other editor instances from using this element.

    Running multiple editor instances on the same source element causes various issues and it is crucial this helper is called as soon as the source element is known to prevent collisions.

    Parameters

    editor : Editor

    Editor instance.

    sourceElement : object

    Element to bind with the editor instance.

    Returns

    void