Skip to content

Commit fc0b951

Browse files
committed
DOC-3286: Add pagebreak_split_block to workaround and live-demo to fix p tag issue.
1 parent 13f24a1 commit fc0b951

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/ROOT/examples/live-demos/full-featured/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ tinymce.init({
713713
}
714714
},
715715
pagebreak_separator: '<div style="break-after: page"></div>',
716+
pagebreak_split_block: true,
716717
importword_converter_options: {
717718
'formatting': {
718719
'styles': 'inline',

modules/ROOT/partials/misc/pagebreak-export-note.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[NOTE]
22
====
33
.Page break support
4-
To ensure page breaks work correctly in exported documents, configure the `pagebreak_separator` option:
4+
To ensure page breaks work correctly in exported documents, configure the `pagebreak_separator` and `pagebreak_split_block` options:
55
ifeval::["{plugincode}" == "exportpdf"]
66
77
[source,js]
@@ -11,11 +11,12 @@ tinymce.init({
1111
plugins: 'exportpdf',
1212
toolbar: 'exportpdf',
1313
pagebreak_separator: '<div style="break-after: page"></div>',
14+
pagebreak_split_block: true,
1415
// ... other configuration options
1516
});
1617
----
1718
18-
For DOCX exports, the page breaks will be converted to Word-compatible page breaks.
19+
For PDF exports, ensure your content includes proper page break elements that will be converted to PDF page breaks.
1920
endif::[]
2021
2122
ifeval::["{plugincode}" != "exportpdf"]
@@ -27,10 +28,11 @@ tinymce.init({
2728
plugins: 'exportword',
2829
toolbar: 'exportword',
2930
pagebreak_separator: '<div style="break-after: page"></div>',
31+
pagebreak_split_block: true,
3032
// ... other configuration options
3133
});
3234
----
3335
34-
For PDF exports, ensure your content includes proper page break elements that will be converted to PDF page breaks.
36+
For DOCX exports, the page breaks will be converted to Word-compatible page breaks.
3537
endif::[]
3638
====

0 commit comments

Comments
 (0)