Skip to content

Commit f0fe427

Browse files
committed
DOC-3147: The default value of pagebreak_split_block is now true to match the new pagebreak_separator default.
1 parent b3a9cdd commit f0fe427

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,34 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
125125
// #TINY-vwxyz1
126126

127127
// CCFR here.
128+
=== The default value of `pagebreak_split_block` is now `true` to match the new `pagebreak_separator` default
129+
// #TINY-12462
128130

131+
The default value for the `pagebreak_split_block` option has been changed from `false` to `true`. This change improves the user experience when inserting page breaks within block elements such as paragraphs, lists, or tables. When enabled:
132+
133+
* Page breaks will automatically split the block element at the cursor position
134+
* Content after the page break will be moved to a new block element of the same type
135+
* The structure and formatting of the content is preserved on both sides of the page break
136+
137+
For example, with this HTML content:
138+
139+
[source,html]
140+
----
141+
<p>First page</p>
142+
<p>Second page</p>
143+
----
144+
145+
When placing the cursor after the word "Second" and inserting a page break, the result will be:
146+
147+
[source,html]
148+
----
149+
<p>First page</p>
150+
<p>Second<div style="break-after: page"></div> page</p>
151+
----
152+
153+
This behavior is now enabled by default, but can be disabled by setting `pagebreak_split_block: false` in the editor configuration.
154+
155+
For more information on the `pagebreak_split_block` option, see xref:pagebreak.adoc#pagebreak_split_block[pagebreak_split_block].
129156

130157
[[removed]]
131158
== Removed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
[[pagebreak_split_block]]
22
== `+pagebreak_split_block+`
33

4-
When enabled this option makes it easier to split block elements with a page break.
4+
By default, page breaks automatically split block elements (such as paragraphs, lists, or tables) at the cursor position while preserving the structure and formatting of the content. This option can be used to disable this behavior by setting it to `false` if this is undesired.
55

66
*Type:* `+Boolean+`
77

8-
*Default value:* `+false+`
8+
*Default value:* `+true+`
99

1010
*Possible values:* `+true+`, `+false+`
1111

1212
=== Example: using `+pagebreak_split_block+`
1313

1414
[source,js]
1515
----
16+
// Disable the block splitting behavior
1617
tinymce.init({
1718
selector: 'textarea', // change this value according to your HTML
1819
plugins: 'pagebreak',
1920
toolbar: 'pagebreak',
20-
pagebreak_split_block: true
21+
pagebreak_split_block: false
2122
});
2223
----

0 commit comments

Comments
 (0)