diff --git a/modules/ROOT/examples/live-demos/full-featured/index.js b/modules/ROOT/examples/live-demos/full-featured/index.js index c29bb7a30e..82cd2155b7 100644 --- a/modules/ROOT/examples/live-demos/full-featured/index.js +++ b/modules/ROOT/examples/live-demos/full-featured/index.js @@ -712,6 +712,8 @@ tinymce.init({ 'size': 'Letter' } }, + pagebreak_separator: '
', + pagebreak_split_block: true, importword_converter_options: { 'formatting': { 'styles': 'inline', diff --git a/modules/ROOT/pages/exportpdf.adoc b/modules/ROOT/pages/exportpdf.adoc index 7032ad7341..1be2a9d008 100644 --- a/modules/ROOT/pages/exportpdf.adoc +++ b/modules/ROOT/pages/exportpdf.adoc @@ -64,6 +64,10 @@ tinymce.init({ The `exportpdf_service_url` option automatically appends `/v1/convert` to the URL provided, so only the base URL is required. For example, if the service is hosted at `http://localhost:8080/v1/convert`, the `exportpdf_service_url` option should be set to `http://localhost:8080/`. When using in production, ensure that `exportpdf_service_url` is updated to the production URL such as `https://myserver.com/`. ==== +== Additional Configuration + +include::partial$misc/pagebreak-export-note.adoc[] + == Options The following configuration options affect the behavior of the {pluginname} plugin. diff --git a/modules/ROOT/pages/exportword.adoc b/modules/ROOT/pages/exportword.adoc index 042dd16561..2d02f37f99 100644 --- a/modules/ROOT/pages/exportword.adoc +++ b/modules/ROOT/pages/exportword.adoc @@ -7,6 +7,7 @@ :description_short: Generate a .docx file directly from the editor. :keywords: plugin, {plugincode}, {pluginname} :plugincategory: premium +:plugincode: exportword include::partial$misc/admon-export-word-paid-addon-pricing.adoc[] @@ -71,6 +72,10 @@ tinymce.init({ The `exportword_service_url` option automatically appends `/v2/convert/html-docx` to the URL provided, so only the base URL is required. For example, if the service is hosted at `http://localhost:8080/v2/convert/html-docx`, the `exportword_service_url` option should be set to `http://localhost:8080/`. When using in production, ensure that `exportword_service_url` is updated to the production URL such as `https://myserver.com/`. ==== +== Additional Configuration + +include::partial$misc/pagebreak-export-note.adoc[] + == Options The following configuration options affect the behavior of the {pluginname} plugin. diff --git a/modules/ROOT/partials/misc/pagebreak-export-note.adoc b/modules/ROOT/partials/misc/pagebreak-export-note.adoc new file mode 100644 index 0000000000..3c08c029b6 --- /dev/null +++ b/modules/ROOT/partials/misc/pagebreak-export-note.adoc @@ -0,0 +1,38 @@ +[NOTE] +==== +.Page break support +To ensure page breaks work correctly in exported documents, configure the `pagebreak_separator` and `pagebreak_split_block` options: +ifeval::["{plugincode}" == "exportpdf"] + +[source,js] +---- +tinymce.init({ + selector: 'textarea', + plugins: 'exportpdf', + toolbar: 'exportpdf', + pagebreak_separator: '
', + pagebreak_split_block: true, + // ... other configuration options +}); +---- + +For PDF exports, ensure your content includes proper page break elements that will be converted to PDF page breaks. +endif::[] + +ifeval::["{plugincode}" != "exportpdf"] + +[source,js] +---- +tinymce.init({ + selector: 'textarea', + plugins: 'exportword', + toolbar: 'exportword', + pagebreak_separator: '
', + pagebreak_split_block: true, + // ... other configuration options +}); +---- + +For DOCX exports, the page breaks will be converted to Word-compatible page breaks. +endif::[] +==== \ No newline at end of file