CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Type Alias PrepareFunction

    PrepareFunction: (node: Node) => void

    Prior to importing the original node, you may want to modify it. Note that allowed modification is limited, though. Expected use-cases are:

    • Modify attributes prior to import.
    • Modify children prior to import.

    This function is especially useful for data view to data transformation, where the data view provides richer HTML API, such as HTMLElement providing access to dataset.

    This function must not detach the original node from DOM or relocate it.

    Type Declaration

      • (node: Node): void
      • Parameters

        • node: Node

          original (mutable!) node

        Returns void