Sign up (with export icon)

engine/view/filler

Api-module icon module

Constants

Functions

  • Chevron-right icon

    BR_FILLER( domDocument ) → HTMLBRElement
    internal

    <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
  • Chevron-right icon

    MARKED_NBSP_FILLER( domDocument ) → HTMLSpanElement
    internal

    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
  • Chevron-right icon

    NBSP_FILLER( domDocument ) → Text
    internal

    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
  • Chevron-right icon

    getDataWithoutFiller( domText ) → string
    internal

    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
    
    Copy code

    Parameters

    domText : string | Text

    DOM text node, possible with inline filler.

    Returns

    string

    Data without filler.

  • Chevron-right icon

    injectQuirksHandling( view ) → void
    internal

    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 : EditingView

    View controller instance we should inject quirks handling on.

    Returns

    void
  • Chevron-right icon

    isInlineFiller( domText ) → boolean
    internal

    Checks if the text node contains only the inline filler.

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

    Parameters

    domText : Text

    DOM text node.

    Returns

    boolean

    True if the text node contains only the inline filler.

  • Chevron-right icon

    startsWithFiller( domNode ) → boolean
    internal

    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
    
    Copy code

    Parameters

    domNode : string | Node

    DOM node.

    Returns

    boolean

    True if the text node starts with the inline filler.