Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions modules/ROOT/pages/8.0-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,17 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a

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

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

// CCFR here.
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.

With the release of {productname} {release-version}, this issue has been resolved by updating the default HTML value of the `pagebreak_separator` option:

* **Old value** – `'<!-- pagebreak -->'`
* **New value** – `'<div style="break-after: page"></div>'`

This change aligns better with modern standards and ensures that page breaks are now accurately rendered in exported documents.


[[removed]]
Expand Down
4 changes: 2 additions & 2 deletions modules/ROOT/partials/configuration/pagebreak_separator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

*Type:* `+String+`

*Default value:* `+'<!-- pagebreak -->'+`
*Default value:* `+'<div style="break-after: page"></div>'+`

=== Example: using `+pagebreak_separator+`

Expand All @@ -13,6 +13,6 @@ tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'pagebreak',
toolbar: 'pagebreak',
pagebreak_separator: '<!-- my page break -->'
pagebreak_separator: '<div style="break-after: page">My page break</div>'
});
----