CoreMedia CKEditor 5 Plugins
    Preparing search index...

    This facade is meant to control data in- and output. It ensures that any data set is returned unchanged, unless editorial actions have been performed meanwhile. Thus, it grants that in a control flow set-data directly followed by get-data the retrieved data are strictly equal to the ones set before.

    Motivation: For any control flow set-data and get-data it is perfectly valid that the retrieved data may have subtle differences to the previously set data.

    Given HTML as data format, the following representations are equivalent regarding the corresponding representation within a browser (unless CSS rules make a difference here):

    <em><strong id="7fac" class="pretty">Lorem</strong></em>
    
    <strong class="pretty" id="7fac"><em>Lorem</em></strong>
    

    Depending on the storage backend, the CKEditor instance is bound to it is possibly important not to signal a change when the change is irrelevant. It may cause overhead such as additional network communication, subsequent publication steps or even may trigger translation processes.

    Hierarchy

    • Plugin
      • DataFacade

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    pluginName: "DataFacade"

    Accessors

    Methods

    • Gets the data, possibly from cache either if the editor is not ready yet, or if the data are considered equal to the data set before.

      Parameters

      • options: { [key: string]: unknown } & DataContextOptions = {}

        options for retrieving data; note, that despite the rootName any other options are ignored if data are retrieved from cache.

      Returns string