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 {pluginname} plugin provides comprehensive control over document metadata and properties. It enables users to edit HTML document metadata such as title, keywords, and description through an intuitive dialog interface. When combined with the code plugin, it also exposes the complete HTML structure including `<head>`, `<body>`, and various meta tags in the source code view.
13
15
14
16
@@ -33,6 +35,44 @@ tinymce.init({
33
35
});
34
36
----
35
37
38
+
[WARNING]
39
+
====
40
+
**Meta tags may be removed by XSS sanitization**
41
+
42
+
By default, {productname} sanitizes HTML content to protect against XSS attacks, which may remove certain meta tags from the full page HTML. If integrators experience issues with meta tags being removed, the following configuration options are available, though not advisable:
43
+
44
+
* `xss_sanitization: false` - Disables DOMPurify.
45
+
* `valid_elements: '*[*]'` - Allows all elements and attributes.
46
+
47
+
See xref:security.adoc#xss_sanitization-option[xss_sanitization option] and xref:content-filtering.adoc#valid_elements[valid_elements option] for more information.
48
+
49
+
**Preserving meta tags (advanced configuration)**
50
+
51
+
If meta tags are being removed by XSS sanitization, the editor can be configured to preserve them using one of the following approaches, though these options are **not recommended**:
52
+
53
+
.Example: using `+xss_sanitization+` to disable DOMPurify
54
+
[source,js]
55
+
----
56
+
tinymce.init({
57
+
selector: 'textarea',
58
+
plugins: 'fullpagehtml',
59
+
toolbar: 'fullpagehtml',
60
+
xss_sanitization: false // Disables DOMPurify, TinyMCE's built-in XSS sanitization which allows potentially unsafe HTML content to be inserted
61
+
});
62
+
----
63
+
64
+
.Example: using `+valid_elements+` to allow all elements and attributes
65
+
[source,js]
66
+
----
67
+
tinymce.init({
68
+
selector: 'textarea',
69
+
plugins: 'fullpagehtml',
70
+
toolbar: 'fullpagehtml',
71
+
valid_elements: '*[*]' // Allows all elements and attributes - use with caution
72
+
});
73
+
----
74
+
====
75
+
36
76
== Options
37
77
38
78
The following configuration options affect the behavior of the {pluginname} plugin.
NOTE: This feature is not supported when {productname} is run in _inline_ mode. It is only supported in _classic_ mode. For more information on the differences between the editing modes, see xref:use-tinymce-inline.adoc[Inline editing mode].
0 commit comments