Data-Processor for CoreMedia RichText 1.0.

Hierarchy

  • Observable<this>
    • RichTextDataProcessor

Implements

  • default

Constructors

Methods

  • Prepares toData transformation.

    Parameters

    • viewFragment: default

      view fragment to transform

    Returns {
        fragmentAsStringForDebugging: string;
        htmlDomFragment: Node | DocumentFragment;
    }

    domFragment the view DOM-structure to transform; fragmentAsStringForDebugging some representation of domFragment to be used for debugging — it will only be initialized, if debug logging is turned on.

    • fragmentAsStringForDebugging: string
    • htmlDomFragment: Node | DocumentFragment
  • Transforms CKEditor HTML to CoreMedia RichText 1.0. Note that to trigger data processor for empty text as well, you have to set the option trim: 'none' on CKEditor.getData().

    Parameters

    • viewFragment: default

      fragment from the view model to process

    Returns string

    CoreMedia RichText 1.0 XML as string