1 | {
|
2 | "plugins": [
|
3 | {
|
4 | "name": "Title",
|
5 | "className": "Title",
|
6 | "description": "Enables support for adding the title field to your document. It helps ensure that there will always be a single title field at the beginning of the document.",
|
7 | "docs": "features/title.html",
|
8 | "path": "src/title.js",
|
9 | "htmlOutput": [
|
10 | {
|
11 | "elements": "h1"
|
12 | }
|
13 | ]
|
14 | },
|
15 | {
|
16 | "name": "Heading",
|
17 | "className": "Heading",
|
18 | "description": "Enables support for creating headings in your content. The heading levels available are configurable.",
|
19 | "docs": "features/headings.html",
|
20 | "path": "src/heading.js",
|
21 | "uiComponents": [
|
22 | {
|
23 | "type": "Dropdown",
|
24 | "name": "heading",
|
25 | "label": "Heading"
|
26 | }
|
27 | ],
|
28 | "htmlOutput": [
|
29 | {
|
30 | "elements": [
|
31 | "h2",
|
32 | "h3",
|
33 | "h4"
|
34 | ],
|
35 | "implements": "$block",
|
36 | "_comment": "The HTML element may contain classes, styles or attributes that are created by other plugins, which alter the <code>`$block`</code> element."
|
37 | },
|
38 | {
|
39 | "elements": "*",
|
40 | "isAlternative": true,
|
41 | "_comment": "The plugin can be configured to return any element name as a heading."
|
42 | }
|
43 | ]
|
44 | }
|
45 | ]
|
46 | }
|