Module

engine/view/filler

@ckeditor/ckeditor5-engine/src/view/filler

module

Filtering

Constants

Functions

  • BR_FILLER( domDocument ) → HTMLBRElement

    <br> filler creator. This function creates the <br data-cke-filler="true"> element. It defines how the filler is created.

    Parameters

    domDocument : Document

    Returns

    HTMLBRElement

    Related:

    • NBSP_FILLER
    • MARKED_NBSP_FILLER
  • MARKED_NBSP_FILLER( domDocument ) → HTMLSpanElement

    Marked non-breaking space filler creator. This function creates the <span data-cke-filler="true">&nbsp;</span> element. It defines how the filler is created.

    Parameters

    domDocument : Document

    Returns

    HTMLSpanElement

    Related:

    • NBSP_FILLER
    • BR_FILLER
  • NBSP_FILLER( domDocument ) → Text

    Non-breaking space filler creator. This function creates the &nbsp; text node. It defines how the filler is created.

    Parameters

    domDocument : Document

    Returns

    Text

    Related:

    • MARKED_NBSP_FILLER
    • BR_FILLER
  • getDataWithoutFiller( domText ) → string

    Get string data from the text node, removing an inline filler from it, if text node contains it.

    getDataWithoutFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ) == 'foo' // true
    getDataWithoutFiller( document.createTextNode( 'foo' ) ) == 'foo' // true
    

    Parameters

    domText : string | Text

    DOM text node, possible with inline filler.

    Returns

    string

    Data without filler.

  • injectQuirksHandling( view ) → void

    Assign key observer which move cursor from the end of the inline filler to the beginning of it when the left arrow is pressed, so the filler does not break navigation.

    Parameters

    view : View

    View controller instance we should inject quirks handling on.

    Returns

    void
  • isInlineFiller( domText ) → boolean

    Checks if the text node contains only the inline filler.

    isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true
    isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // false
    

    Parameters

    domText : Text

    DOM text node.

    Returns

    boolean

    True if the text node contains only the inline filler.

  • startsWithFiller( domNode ) → boolean

    Checks if the node is a text node which starts with the inline filler.

    startsWithFiller( document.createTextNode( INLINE_FILLER ) ); // true
    startsWithFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // true
    startsWithFiller( document.createTextNode( 'foo' ) ); // false
    startsWithFiller( document.createElement( 'p' ) ); // false
    

    Parameters

    domNode : string | Node

    DOM node.

    Returns

    boolean

    True if the text node starts with the inline filler.