diff --git a/modules/ROOT/examples/live-demos/fullpagehtml/index.html b/modules/ROOT/examples/live-demos/fullpagehtml/index.html new file mode 100644 index 0000000000..0d217b04a0 --- /dev/null +++ b/modules/ROOT/examples/live-demos/fullpagehtml/index.html @@ -0,0 +1,21 @@ + diff --git a/modules/ROOT/examples/live-demos/fullpagehtml/index.js b/modules/ROOT/examples/live-demos/fullpagehtml/index.js new file mode 100644 index 0000000000..9d5f2b8cc4 --- /dev/null +++ b/modules/ROOT/examples/live-demos/fullpagehtml/index.js @@ -0,0 +1,16 @@ +tinymce.init({ + selector: 'textarea#fullpagehtml', + height: '800px', + plugins: [ + "fullpagehtml", "advlist", "anchor", "autolink", "charmap", "code", "fullscreen", + "help", "image", "insertdatetime", "link", "lists", "media", + "preview", "searchreplace", "table", "visualblocks", + ], + toolbar: "fullpagehtml | undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image", + // Full Page HTML Plugin Configuration Options + fullpagehtml_default_doctype: '', + fullpagehtml_default_title: 'Full Page HTML Plugin Demo Document', + fullpagehtml_default_encoding: 'UTF-8', + fullpagehtml_default_body_style: 'margin: 20px; padding: 15px; font-family: Georgia, Times, serif; font-size: 16px; color: #2c3e50;', + fullpagehtml_hide_in_source_view: false // Show full page HTML in source view +}); \ No newline at end of file diff --git a/modules/ROOT/images/icons/default-document-properties.svg b/modules/ROOT/images/icons/default-document-properties.svg new file mode 100644 index 0000000000..bc305f278e --- /dev/null +++ b/modules/ROOT/images/icons/default-document-properties.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/modules/ROOT/images/icons/document-properties.svg b/modules/ROOT/images/icons/document-properties.svg deleted file mode 100644 index eba5de0b3f..0000000000 --- a/modules/ROOT/images/icons/document-properties.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - icon-document-properties - Created with Sketch. - - - - - \ No newline at end of file diff --git a/modules/ROOT/nav.adoc b/modules/ROOT/nav.adoc index c874b625c5..44f9aff1fa 100644 --- a/modules/ROOT/nav.adoc +++ b/modules/ROOT/nav.adoc @@ -315,6 +315,7 @@ **** JWT Authentication ***** xref:export-to-word-with-jwt-authentication-nodejs.adoc[Node.js] ***** xref:export-to-word-with-jwt-authentication-php.adoc[PHP] +*** xref:fullpagehtml.adoc[Full Page HTML] *** xref:footnotes.adoc[Footnotes] *** xref:formatpainter.adoc[Format Painter] *** xref:importword.adoc[Import from Word] diff --git a/modules/ROOT/pages/8.1.0-release-notes.adoc b/modules/ROOT/pages/8.1.0-release-notes.adoc index 3e7a6181b4..7012a6b19c 100644 --- a/modules/ROOT/pages/8.1.0-release-notes.adoc +++ b/modules/ROOT/pages/8.1.0-release-notes.adoc @@ -30,11 +30,11 @@ include::partial$misc/admon-releasenotes-for-stable.adoc[] The following new Premium plugin was released alongside {productname} {release-version}. -// === +=== Full Page HTML -// The new Premium plugin, **** // description here. +The new Premium plugin, **Full Page HTML** 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 ``, ``, and various meta tags in the source code view. -// For information on the **** plugin, see xref:.adoc[]. +For information on the **Full Page HTML** plugin, see xref:fullpagehtml.adoc[Full Page HTML]. [[accompanying-premium-plugin-changes]] @@ -138,9 +138,10 @@ The following premium plugin updates were released alongside {productname} {rele This section describes issues that users of {productname} {release-version} may encounter and possible workarounds for these issues. -There known issue in {productname} {release-version}. +There is one known issue in {productname} {release-version}. -// === -// #TINY-vwxyz1 +=== Full Page HTML plugin incompatibility with Suggested Edits and Revision History + +The Full Page HTML plugin enables document properties and metadata to be set. However, these are not picked up by Suggested Edits and Revision History, and actions performed in these plugins will overwrite the values set by the Full Page plugin. -// CCFR here. \ No newline at end of file +**Workaround:** Avoid using the Full Page HTML plugin in combination with Suggested Edits or Revision History plugins to prevent data loss of document metadata and properties. \ No newline at end of file diff --git a/modules/ROOT/pages/available-menu-items.adoc b/modules/ROOT/pages/available-menu-items.adoc index 8f55b4d322..56faf50683 100644 --- a/modules/ROOT/pages/available-menu-items.adoc +++ b/modules/ROOT/pages/available-menu-items.adoc @@ -100,6 +100,12 @@ include::partial$misc/plugin-menu-item-id-boilerplate.adoc[] :plugincode: emoticons include::partial$misc/plugin-menu-item-id-boilerplate.adoc[] +:plugincategory: premium +:pluginname: Full Page HTML +:plugincode: fullpagehtml +:pluginpage: fullpagehtml.adoc +include::partial$misc/plugin-menu-item-id-boilerplate.adoc[] + :plugincategory: premium :pluginname: Export to PDF :plugincode: exportpdf diff --git a/modules/ROOT/pages/available-toolbar-buttons.adoc b/modules/ROOT/pages/available-toolbar-buttons.adoc index 0a95913626..74ffd4a6d6 100644 --- a/modules/ROOT/pages/available-toolbar-buttons.adoc +++ b/modules/ROOT/pages/available-toolbar-buttons.adoc @@ -112,6 +112,12 @@ include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[] :plugincode: emoticons include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[] +:plugincategory: premium +:pluginname: Full Page HTML +:plugincode: fullpagehtml +:pluginpage: fullpagehtml.adoc +include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[] + :plugincategory: premium :pluginname: Export to PDF :plugincode: exportpdf diff --git a/modules/ROOT/pages/fullpagehtml.adoc b/modules/ROOT/pages/fullpagehtml.adoc new file mode 100644 index 0000000000..e09e314def --- /dev/null +++ b/modules/ROOT/pages/fullpagehtml.adoc @@ -0,0 +1,124 @@ += Full Page HTML Plugin +:navtitle: Full Page HTML +:description: Edit metadata and document properties including title, keywords, and description via a dialog box, with HTML structure exposure in source code view. +:description_short: Edit document metadata and properties with dialog interface and source code exposure. +:keywords: full page html, metadata, document properties, title, keywords, description, HTML structure, source code +:pluginname: Full Page HTML +:plugincode: fullpagehtml +:plugincategory: premium + +include::partial$misc/admon-premium-plugin.adoc[] + +include::partial$misc/admon-inline-not-supported.adoc[] + +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 ``, ``, and various meta tags in the source code view. + + +== Interactive example + + +liveDemo::{plugincode}[] + +== Basic setup + +To add the {pluginname} plugin to the editor, add `{plugincode}` to the `plugins` option in the editor configuration. + +For example: + +[source,js] +---- +tinymce.init({ + selector: 'textarea', // change this value according to your HTML + plugins: 'fullpagehtml', + toolbar: 'fullpagehtml', + fullpagehtml_default_doctype: '' +}); +---- + +[WARNING] +==== +**Certain elements may be removed by XSS sanitization** +By default, {productname} sanitizes HTML content to protect against XSS attacks. Elements outside the HTML5 specification, such as `