Skip to content

Commit d0f404a

Browse files
DOC-3147: Default value for option to better suit modern standards.
1 parent b3a9cdd commit d0f404a

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

modules/ROOT/pages/8.0-release-notes.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,17 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
121121

122122
{productname} {release-version} also includes the following change<s>:
123123

124-
// === <TINY-vwxyz 1 changelog entry>
125-
// #TINY-vwxyz1
124+
=== Changed the default value for the `pagebreak_separator` option.
125+
// #TINY-12013
126126

127-
// CCFR here.
127+
In previous versions of {productname}, inserting a page break in the editor did not translate correctly when exporting using the xref:exportpdf.adoc[Export to PDF] plugin. Similarly, the xref:exportword.adoc[Export to Word] plugin also failed to preserve page breaks in the exported documents. As a result, exported files lacked the intended page breaks, leading to confusing output for users.
128+
129+
With the release of {productname} {release-version}, this issue has been resolved by updating the default HTML value of the `pagebreak_separator` option:
130+
131+
* **Old value** – `'<!-- pagebreak -->'`
132+
* **New value** – `'<div style=”page-break-after: all”></div>'`
133+
134+
This change aligns better with modern standards and ensures that page breaks are now accurately rendered in exported documents.
128135

129136

130137
[[removed]]

modules/ROOT/partials/configuration/pagebreak_separator.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
*Type:* `+String+`
55

6-
*Default value:* `+'<!-- pagebreak -->'+`
6+
*Default value:* `+'<div style=”page-break-after: all”></div>'+`
77

88
=== Example: using `+pagebreak_separator+`
99

@@ -13,6 +13,6 @@ tinymce.init({
1313
selector: 'textarea', // change this value according to your HTML
1414
plugins: 'pagebreak',
1515
toolbar: 'pagebreak',
16-
pagebreak_separator: '<!-- my page break -->'
16+
pagebreak_separator: '<div style=”page-break-after: all”>My page break</div>
1717
});
1818
----

0 commit comments

Comments
 (0)