Report an issue
Class

CKEDITOR.plugins.widgetselection

class

Filtering

Properties

  • private

    endFiller : element

    The end filler element reference.

  • private

    fillerAttribute : String

    An attribute which identifies the filler element.

    Defaults to 'data-cke-filler-webkit'

  • private

    fillerContent : String

    The default content of the filler element. Note: The filler needs to have visible content. Unprintable elements or empty content do not help as a workaround.

    Defaults to ' '

  • private

    fillerTagName : String

    Tag name which is used to create fillers.

    Defaults to 'div'

  • private

    startFiller : element

    The start filler element reference.

Methods

  • addFillers( editable ) → Boolean

    Adds a filler before or after a non-editable element at the beginning or the end of the editable.

    Parameters

    editable : editable

    Returns

    Boolean
  • removeFillers( editable )

    Removes filler elements or updates their references.

    It will not remove filler elements if the whole content is selected, as it would break the selection.

    Parameters

    editable : editable
  • private

    addSelectAllIntegration( editor )

    Adds an integration for the Select All plugin to the given editor.

    Parameters

    editor : editor
  • private

    cleanPasteData( data ) → String

    Removes fillers from the paste data.

    Parameters

    data : String

    Returns

    String
  • private

    createFiller( [ onEnd ] ) → element

    Creates a filler element.

    Parameters

    [ onEnd ] : Boolean

    If filler will be placed on end or beginning of the content.

    Returns

    element
  • private

    createFillerRegex( [ onEnd ] ) → RegExp

    Creates a regular expression which will match the filler HTML in the text.

    Parameters

    [ onEnd ] : Boolean

    Whether a regular expression should be created for the filler at the beginning or the end of the content.

    Returns

    RegExp
  • private

    hasFiller( editable ) → Boolean

    Checks if there is any filler element in the given editable.

    Parameters

    editable : editable

    Returns

    Boolean
  • private

    isWholeContentSelected( editable ) → Boolean

    Checks if the entire content of the given editable is selected.

    Parameters

    editable : editable

    Returns

    Boolean
  • private

    removeFiller( filler, editable )

    Removes the specific filler element from the given editable. If the filler contains any content (typed or pasted), it replaces the current editable content. If not, the caret is placed before the first or after the last editable element (depends if the filler was at the beginning or the end).

    Parameters

    filler : element
    editable : editable