UNPKG

1.86 kBJSONView Raw
1{
2 "plugins": [
3 {
4 "name": "Autolink",
5 "className": "AutoLink",
6 "description": "Automatically turns plain text links in the document into active URLs as you write. Works for emails, too.",
7 "docs": "features/link.html#autolink-feature",
8 "path": "src/autolink.js",
9 "requires": [
10 "Link"
11 ]
12 },
13 {
14 "name": "Link",
15 "className": "Link",
16 "description": "Brings support for inserting hyperlinks into the content and offers the UI to create and edit them.",
17 "docs": "features/link.html",
18 "path": "src/link.js",
19 "uiComponents": [
20 {
21 "type": "Button",
22 "name": "link",
23 "iconPath": "theme/icons/link.svg"
24 }
25 ],
26 "htmlOutput": [
27 {
28 "elements": "a",
29 "attributes": "href"
30 },
31 {
32 "elements": "a",
33 "attributes": [
34 "rel",
35 "target"
36 ],
37 "isAlternative": true,
38 "_comment": "If `config.link.addTargetToExternalLinks` is enabled, then the external links are decorated with `rel` and `target` attributes."
39 },
40 {
41 "elements": "a",
42 "classes": "*",
43 "styles": "*",
44 "attributes": "*",
45 "isAlternative": true,
46 "_comment": "The plugin can be configured to set any classes, styles or attributes on the `<a>` tag via custom `config.link.decorators` configuration."
47 }
48 ]
49 },
50 {
51 "name": "Link image",
52 "className": "LinkImage",
53 "description": "Allows adding clickable links to images for creating banners or referrers.",
54 "docs": "features/images/images-linking.html",
55 "path": "src/linkimage.js",
56 "requires": [
57 "Link",
58 "Image"
59 ],
60 "uiComponents": [
61 {
62 "type": "Button",
63 "name": "linkImage",
64 "iconPath": "theme/icons/link.svg",
65 "toolbars": [
66 "image.toolbar"
67 ]
68 }
69 ],
70 "htmlOutput": [
71 {
72 "elements": "a",
73 "attributes": "href"
74 }
75 ]
76 }
77 ]
78}