CKEditor 4 Documentation

CKEDITOR.plugins.link

Files

Set of Link plugin helpers.

Defined By

Properties

CKEDITOR.plugins.link
view source
: Booleandeprecatedreadonly
For browsers that have editing issues with an empty anchor. ...

For browsers that have editing issues with an empty anchor.

This property has been deprected since 4.3.3

It is set to false in every browser.

CKEDITOR.plugins.link
view source
: Booleandeprecatedreadonly
Opera and WebKit do not make it possible to select empty anchors. ...

Opera and WebKit do not make it possible to select empty anchors. Fake elements must be used for them.

Defaults to: true

This property has been deprected since 4.3.3

It is set to true in every browser.

CKEDITOR.plugins.link
view source
: Booleandeprecatedreadonly
For browsers that do not support CSS3 a[name]:empty(). ...

For browsers that do not support CSS3 a[name]:empty(). Note that IE9 is included because of #7783.

This property has been deprected since 4.3.3

It is set to false in every browser.

Defined By

Methods

CKEDITOR.plugins.link
view source
( editor ) : CKEDITOR.dom.element[]
Collects anchors available in the editor (i.e. ...

Collects anchors available in the editor (i.e. used by the Link plugin). Note that the scope of search is different for inline (the "global" document) and classic (iframe-based) editors (the "inner" document).

Available since: 4.3.3

Parameters

Returns

CKEDITOR.plugins.link
view source
( editor, data ) : Object
Converts link data produced by parseLinkAttributes into an object which consists of attributes to be set (with their ...

Converts link data produced by parseLinkAttributes into an object which consists of attributes to be set (with their values) and an array of attributes to be removed. This method can be used to compose or to update any link element with the given data.

Available since: 4.4

Parameters

Returns

  • Object

    An object consisting of two keys, i.e.:

    {
        // Attributes to be set.
        set: {
            href: 'http://foo.bar',
            target: 'bang'
        },
        // Attributes to be removed.
        removed: [
            'id', 'style'
        ]
    }
    
CKEDITOR.plugins.link
view source
( editor, element ) : Object
Parses attributes of the link element and returns an object representing the current state (data) of the link. ...

Parses attributes of the link element and returns an object representing the current state (data) of the link. This data format is a plain object accepted e.g. by the Link dialog window and getLinkAttributes.

Note: Data model format produced by the parser must be compatible with the Link plugin dialog because it is passed directly to CKEDITOR.dialog.setupContent.

Available since: 4.4

Parameters

Returns

  • Object

    An object of link data.

CKEDITOR.plugins.link
view source
( element, editor ) : Boolean
Determines whether an element should have a "Display Text" field in the Link dialog. ...

Determines whether an element should have a "Display Text" field in the Link dialog.

Available since: 4.5.11

Parameters

  • element : CKEDITOR.dom.element/null

    Selected element, null if none selected or if a ranged selection is made.

  • editor : CKEDITOR.editor

    The editor instance for which the check is performed.

Returns

  • Boolean
CKEDITOR.plugins.link
view source
( editor, element ) : CKEDITOR.dom.element
Returns an element representing a real anchor restored from a fake anchor. ...

Returns an element representing a real anchor restored from a fake anchor.

Parameters

Returns

  • CKEDITOR.dom.element

    Restored anchor element or nothing if the passed element was not a fake anchor.