Report an issue
Class

CKEDITOR.plugins.widgetselection

class

Filtering

Properties

  • endFiller : element

    private

    The end filler element reference.

  • fillerAttribute : String

    private

    An attribute which identifies the filler element.

    Defaults to 'data-cke-filler-webkit'

  • fillerContent : String

    private

    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 ' '

  • fillerTagName : String

    private

    Tag name which is used to create fillers.

    Defaults to 'div'

  • startFiller : element

    private

    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
  • addSelectAllIntegration( editor )

    private

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

    Parameters

    editor : editor
  • cleanPasteData( data ) → String

    private

    Removes fillers from the paste data.

    Parameters

    data : String

    Returns

    String
  • createFiller( [ onEnd ] ) → element

    private

    Creates a filler element.

    Parameters

    [ onEnd ] : Boolean

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

    Returns

    element
  • createFillerRegex( [ onEnd ] ) → RegExp

    private

    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
  • hasFiller( editable ) → Boolean

    private

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

    Parameters

    editable : editable

    Returns

    Boolean
  • isWholeContentSelected( editable ) → Boolean

    private

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

    Parameters

    editable : editable

    Returns

    Boolean
  • removeFiller( filler, editable )

    private

    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