Report an issue
Class

CKEDITOR.plugins.pastetools

class

Filtering

Properties

  • filters : Object.<String, Object>

    A collection of available filters.

    Defaults to {}

Methods

  • createFilter( options ) → Function

    Creates a filter based on passed rules.

    Parameters

    options : Object
    Properties
    rules : Function

    A function returning the filter's rules.

    additionalTransforms : Function

    A function transforming HTML before passing it to the filter.

    Returns

    Function

    A function that wraps filter invocation.

  • getClipboardData( data, type ) → String | Blob

    Gets clipboard data.

    Parameters

    data : Object

    Paste event data property.

    type : String

    MIME type of the requested data.

    Returns

    String | Blob

    Raw clipboard data.

  • getConfigValue( editor, configVariable ) → String | Boolean | Number | Object | Array

    Gets the configuration value.

    This function allows to get the configuration value for Paste Tools from the legacy Paste from Word configuration.

    Parameters

    editor : editor

    The editor instance.

    configVariable : String

    The configuration variable name.

    Returns

    String | Boolean | Number | Object | Array

    The configuration variable value.

  • loadFilters( filters, callback )

    Loads external scripts containing filter definitions in given order.

    Parameters

    filters : String[]

    An array of filter URLs.

    callback : Function

    A callback that will be invoked after loading all scripts.