File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
examples/live-demos/full-featured Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff line change 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 :
55ifeval::["{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.
1920endif::[]
2021
2122ifeval::["{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.
3537endif::[]
3638====
You can’t perform that action at this time.
0 commit comments