You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second `+meta+` element is required for the editor to function correctly on mobile devices. For information on the viewport `+meta+` element, see: https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag#viewport_basics[MDN Web Docs - Using the viewport meta tag to control layout on mobile browsers].
. Add a `+script+` element sourcing {productname}, such as:
45
+
. Add a `+script+` element sourcing the output file, such as:
56
46
+
57
47
[source,html]
58
48
----
@@ -63,7 +53,7 @@ If a `script` element sourcing {productname} is not provided, the {productname}
63
53
64
54
endif::[]
65
55
ifeval::["{productSource}" == "zip"]
66
-
. Add a `+script+` element sourcing the {productname} Web Component (`+tinymce-webcomponent.js+`), such as:
56
+
. Add a `+script+` element sourcing the {productname} Web Component (`+tinymce-webcomponent.min.js+`), such as:
67
57
+
68
58
[source,html,subs="attributes+"]
69
59
----
@@ -80,28 +70,35 @@ The `tinymce-webcomponent` can also be sourced from link:https://www.npmjs.com/p
80
70
----
81
71
+
82
72
If a `+script+` element sourcing {productname} is not provided, the {productname} Web Component will load {productname} from the {cloudname}. For information on the available options for sourcing {productname}, see: xref:webcomponent-ref.adoc#loading-tinymce[Loading {productname}].
73
+
83
74
endif::[]
75
+
84
76
ifeval::["{productSource}" == "cloud"]
85
77
. Add a `+tinymce-editor+` element where the editor should appear and include your {cloudname} API key from link:{accountpageurl}/[{accountpage}].
86
78
+
87
79
[source,html]
88
80
----
89
81
<tinymce-editor
90
-
api-key="your-tiny-cloud-api-key"
82
+
api-key="no-api-key"
91
83
></tinymce-editor>
92
84
----
93
85
endif::[]
86
+
94
87
ifeval::["{productSource}" != "cloud"]
95
88
. Add a `+tinymce-editor+` element where the editor should appear.
For a list of available context menu sections, see: xref:editor-context-menu-identifiers.adoc[Available context menu sections]. For information on context menus, see: xref:menus-configuration-options.adoc#contextmenu[User interface options - `+contextmenu+`].
225
211
226
212
[[setting-the-quick-insert-toolbar]]
@@ -308,10 +294,11 @@ To apply a small set of CSS styles to the editor, use the `+content_style+` attr
308
294
309
295
For information on the `+content_style+` option, see: xref:add-css-options.adoc#content_style[Content appearance options - `+content_style+`].
310
296
311
-
[[setting-powerpastes-word-import-method]]
312
-
=== Setting PowerPaste's word import method
297
+
=== Settings for when PowerPaste plugin enabled
298
+
NOTE: These settings only apply if the PowerPaste plugin (`+powerpaste+`) is enabled.
313
299
314
-
This setting only applies if the PowerPaste plugin (`+powerpaste+`) is enabled.
300
+
[[setting-powerpastes-word-import-method]]
301
+
==== PowerPaste's word import method
315
302
316
303
To control how content pasted from Microsoft Word is filtered, use the `+powerpaste_word_import+` attribute. For example:
317
304
@@ -323,9 +310,7 @@ To control how content pasted from Microsoft Word is filtered, use the `+powerpa
323
310
For information on the `+powerpaste_word_import+` option, including supported values, see: xref:powerpaste-options.adoc#powerpaste_word_import[The PowerPaste plugin - `+powerpaste_word_import+`].
324
311
325
312
[[setting-powerpastes-html-import-method]]
326
-
=== Setting PowerPaste's html import method
327
-
328
-
This setting only applies if the PowerPaste plugin (`+powerpaste+`) is enabled.
313
+
==== PowerPaste's html import method
329
314
330
315
To control how content pasted from sources other than Microsoft Word is filtered, use the `+powerpaste_html_import+` attribute. For example:
331
316
@@ -337,9 +322,8 @@ To control how content pasted from sources other than Microsoft Word is filtered
337
322
For information on the `+powerpaste_html_import+` option, including supported values, see: xref:powerpaste-options.adoc#powerpaste_html_import[The PowerPaste plugin - `+powerpaste_html_import+`].
338
323
339
324
[[setting-powerpaste-to-allow-local-images]]
340
-
=== Setting PowerPaste to allow local images
325
+
==== PowerPaste to allow local images
341
326
342
-
This setting only applies if the PowerPaste plugin (`+powerpaste+`) is enabled.
343
327
344
328
To prevent Base64 encoded images with a data URI from being pasted into the editor, set `+powerpaste_allow_local_images+` to `+"false"+`. For example:
345
329
@@ -379,11 +363,11 @@ To execute a javascript callback before the editor instance is rendered, use the
0 commit comments