1 | {
|
2 | "plugins": [
|
3 | {
|
4 | "name": "Media embed",
|
5 | "className": "MediaEmbed",
|
6 | "description": "Allows for inserting embeddable media such as YouTube or Vimeo videos, Instagram posts and tweets or Google Maps into your rich-text content.",
|
7 | "docs": "features/media-embed.html",
|
8 | "path": "src/mediaembed.js",
|
9 | "uiComponents": [
|
10 | {
|
11 | "type": "SplitButton",
|
12 | "name": "mediaEmbed",
|
13 | "iconPath": "theme/icons/media.svg"
|
14 | }
|
15 | ],
|
16 | "htmlOutput": [
|
17 | {
|
18 | "elements": "figure",
|
19 | "classes": "media"
|
20 | },
|
21 | {
|
22 | "elements": "oembed",
|
23 | "attributes": "url",
|
24 | "_comment": "If `config.mediaEmbed.previewsInData` is turned off, the media preview is not displayed and the media is represented using only the `<oembed>` tag (by default)."
|
25 | },
|
26 | {
|
27 | "elements": "div",
|
28 | "attributes": "data-oembed-url",
|
29 | "isAlternative": true,
|
30 | "_comment": "If `config.mediaEmbed.previewsInData` is turned on, the media preview is displayed in the view."
|
31 | },
|
32 | {
|
33 | "elements": "*",
|
34 | "attributes": "url",
|
35 | "isAlternative": true,
|
36 | "_comment": "If `config.mediaEmbed.previewsInData` is turned off, the plugin can be configured to return any element name specified by `config.mediaEmbed.elementName`."
|
37 | },
|
38 | {
|
39 | "elements": "div",
|
40 | "styles": [
|
41 | "height",
|
42 | "padding-bottom",
|
43 | "position"
|
44 | ],
|
45 | "isAlternative": true,
|
46 | "_comment": "If `config.mediaEmbed.previewsInData` is turned on, the media preview is displayed in the view."
|
47 | },
|
48 | {
|
49 | "elements": "iframe",
|
50 | "styles": [
|
51 | "height",
|
52 | "left",
|
53 | "position",
|
54 | "top",
|
55 | "width"
|
56 | ],
|
57 | "attributes": [
|
58 | "*allow*",
|
59 | "frameborder",
|
60 | "src"
|
61 | ],
|
62 | "isAlternative": true,
|
63 | "_comment": "If `config.mediaEmbed.previewsInData` is turned on, the media preview is displayed in the view."
|
64 | },
|
65 | {
|
66 | "elements": "*",
|
67 | "classes": "*",
|
68 | "styles": "*",
|
69 | "attributes": "*",
|
70 | "isAlternative": true,
|
71 | "_comment": "The plugin can be configured to return any element with any class, inline style, and attribute, via `config.mediaEmbed.providers` for previewable media."
|
72 | }
|
73 | ]
|
74 | },
|
75 | {
|
76 | "name": "Media embed toolbar",
|
77 | "className": "MediaEmbedToolbar",
|
78 | "description": "Implements an optional toolbar for media embed that shows when the media element is selected.",
|
79 | "docs": "features/media-embed.html",
|
80 | "path": "src/mediaembedtoolbar.js",
|
81 | "requires": [
|
82 | "MediaEmbed"
|
83 | ],
|
84 | "registeredToolbars": [
|
85 | "mediaEmbed.toolbar"
|
86 | ]
|
87 | }
|
88 | ]
|
89 | }
|