Module

html-support/conversionutils

@ckeditor/ckeditor5-html-support/src/conversionutils

module

Filtering

Functions

  • mergeViewElementAttributes( target, source ) → Object

    Merges view element attribute objects.

    Parameters

    target : Object
    source : Object

    Returns

    Object
  • removeViewAttributes( writer, viewAttributes, viewElement )

    Helper function for the downcast converter. Removes attributes on the given view element.

    Parameters

    writer : DowncastWriter

    The view writer.

    viewAttributes : Object

    The GHS attribute value.

    viewElement : Element

    The view element to update.

  • setViewAttributes( writer, viewAttributes, viewElement )

    Helper function for the downcast converter. Sets attributes on the given view element.

    Parameters

    writer : DowncastWriter

    The view writer.

    viewAttributes : Object

    The GHS attribute value.

    viewElement : Element

    The view element to update.

  • updateViewAttributes( writer, oldViewAttributes, newViewAttributes, viewElement )

    Helper function for the downcast converter. Updates attributes on the given view element.

    Parameters

    writer : DowncastWriter

    The view writer.

    oldViewAttributes : Object

    The previous GHS attribute value.

    newViewAttributes : Object

    The current GHS attribute value.

    viewElement : Element

    The view element to update.