UNPKG

@ckeditor/ckeditor5-link

Version:

Link feature for CKEditor 5.

79 lines (78 loc) 1.86 kB
{ "plugins": [ { "name": "Autolink", "className": "AutoLink", "description": "Automatically turns plain text links in the document into active URLs as you write. Works for emails, too.", "docs": "features/link.html#autolink-feature", "path": "src/autolink.js", "requires": [ "Link" ] }, { "name": "Link", "className": "Link", "description": "Brings support for inserting hyperlinks into the content and offers the UI to create and edit them.", "docs": "features/link.html", "path": "src/link.js", "uiComponents": [ { "type": "Button", "name": "link", "iconPath": "theme/icons/link.svg" } ], "htmlOutput": [ { "elements": "a", "attributes": "href" }, { "elements": "a", "attributes": [ "rel", "target" ], "isAlternative": true, "_comment": "If `config.link.addTargetToExternalLinks` is enabled, then the external links are decorated with `rel` and `target` attributes." }, { "elements": "a", "classes": "*", "styles": "*", "attributes": "*", "isAlternative": true, "_comment": "The plugin can be configured to set any classes, styles or attributes on the `<a>` tag via custom `config.link.decorators` configuration." } ] }, { "name": "Link image", "className": "LinkImage", "description": "Allows adding clickable links to images for creating banners or referrers.", "docs": "features/images/images-linking.html", "path": "src/linkimage.js", "requires": [ "Link", "Image" ], "uiComponents": [ { "type": "Button", "name": "linkImage", "iconPath": "theme/icons/link.svg", "toolbars": [ "image.toolbar" ] } ], "htmlOutput": [ { "elements": "a", "attributes": "href" } ] } ] }