Skip to content

Commit 85fff29

Browse files
committed
Revert "DOC-3147: The default value of pagebreak_split_block is now true to match the new pagebreak_separator default. (#3795)"
This reverts commit 7ad29fd.
1 parent e208e3a commit 85fff29

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -350,34 +350,6 @@ Comments containing HTML-like content are removed from the editor's content by d
350350

351351
// CCFR here.
352352

353-
=== The `pagebreak_split_block` option now defaults to `true`. When a page break is inserted, the resulting HTML output is: `<div style="break-after: page"></div>.`
354-
// #TINY-12462
355-
356-
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:
357-
358-
* Page breaks will automatically split the block element at the cursor position
359-
* Content after the page break will be moved to a new block element of the same type
360-
* The structure and formatting of the content is preserved on both sides of the page break
361-
362-
For example, with this HTML content:
363-
364-
[source,html]
365-
----
366-
<p>First page</p>
367-
----
368-
369-
When placing the cursor after the word "First" and inserting a page break, the result will be:
370-
371-
[source,html]
372-
----
373-
<p>First </p>
374-
<div style="break-after: page"></div>
375-
<p>page</p>
376-
----
377-
378-
This behavior is now enabled by default, but can be disabled by setting `pagebreak_split_block: false` in the editor configuration.
379-
380-
For more information on the `pagebreak_split_block` option, see xref:pagebreak.adoc#pagebreak_split_block[pagebreak_split_block].
381353

382354
=== DomParser no longer tries to fix some nodes when parsed with a context
383355
// #TINY-8205
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
[[pagebreak_split_block]]
22
== `+pagebreak_split_block+`
33

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.
4+
When enabled this option makes it easier to split block elements with a page break.
55

66
*Type:* `+Boolean+`
77

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

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

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

1414
[source,js]
1515
----
16-
// Disable the block splitting behavior
1716
tinymce.init({
1817
selector: 'textarea', // change this value according to your HTML
1918
plugins: 'pagebreak',
2019
toolbar: 'pagebreak',
21-
pagebreak_split_block: false
20+
pagebreak_split_block: true
2221
});
2322
----

0 commit comments

Comments
 (0)