Skip to content

Commit b2a8207

Browse files
DOC-3147: Default value for pagebreak_separator option to better suit modern standards. (#3780)
* DOC-3147: Default value for option to better suit modern standards. * DOC-3147: Fixed syntax issue. * Update modules/ROOT/partials/configuration/pagebreak_separator.adoc * Update modules/ROOT/partials/configuration/pagebreak_separator.adoc * Update modules/ROOT/pages/8.0-release-notes.adoc --------- Co-authored-by: Karl Kemister-Sheppard <karlkemistersheppard@gmail.com>
1 parent 1053f8b commit b2a8207

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
@@ -139,10 +139,17 @@ In {productname} {release-version}, the resize handle now includes a `role` sepe
139139

140140
{productname} {release-version} also includes the following change<s>:
141141

142-
// === <TINY-vwxyz 1 changelog entry>
143-
// #TINY-vwxyz1
142+
=== Changed the default value for the `pagebreak_separator` option.
143+
// #TINY-12013
144144

145-
// CCFR here.
145+
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.
146+
147+
With the release of {productname} {release-version}, this issue has been resolved by updating the default HTML value of the `pagebreak_separator` option:
148+
149+
* **Old value** – `'<!-- pagebreak -->'`
150+
* **New value** – `'<div style="break-after: page"></div>'`
151+
152+
This change aligns better with modern standards and ensures that page breaks are now accurately rendered in exported documents.
146153

147154

148155
[[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="break-after: page"></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="break-after: page">My page break</div>'
1717
});
1818
----

0 commit comments

Comments
 (0)