valid_elements isn't working properly (with pagebreak)
See original GitHub issueI try to add a hr-element as a page-break but this doesn’t work when I use the valid_elements
parameter.
Example without valid_elements
(does work): http://fiddle.tinymce.com/44faab
Example with valid_elements
(doesn’t work): http://fiddle.tinymce.com/54faab
When you type two lines of text and then try to insert a page break, you will immediately see the problem. You’re not able to add the hr
element.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
page-break-inside doesn't work in Chrome? - Stack Overflow
This doesn't seem to work in Chrome. Open the demo, right-click the page, choose "Print...". You'll see a print preview - the fifth...
Read more >page-break - Properties - CSS-Tricks
The page-break-inside property adds a page-break inside the element to which it is applied. Syntax. page-break-after : auto | always | avoid | ......
Read more >page-break-inside - CSS: Cascading Style Sheets | MDN
The page-break-inside CSS property adjusts page breaks inside the current element.
Read more >223068 - Support break-before, break-after, break-inside
simply map to break-inside:avoid, we map it to avoid-page, so that the computed value of -webkit-column-break-inside isn't affected by such a declaration.
Read more >Add Page Break - Qualtrics
Page Breaks with Other Features · Piped Text: If an instance of piped text refers to an answer in a previous question, then...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@drmonkeyninja Ah yes, that works, thanks! The rule can be a little more specific to exclude other image tags:
img[class<mce-pagebreak]
.To the TinyMCE developers, I think you should automatically allow the page break image code, regardless of how valid_elements is set up.
This issue has been closed due to inactivity. Tiny will soon be working with members of the community to close other old issues on our GitHub repositories. Please note the official support window for TinyMCE 4 is ending on December 31, 2020. If you haven’t already upgraded to TinyMCE 5 it is highly encouraged that you do so. Upgrading will give you access to the latest releases and updates made to our WYSIWYG editor focused on bringing the latest UX and developer features into the editing experience. To assist with upgrading the editor we have put together a migration guide you can use here - https://www.tiny.cloud/blog/how-to-migrate-from-tinymce-4-to-tinymce-5/ If you have any questions or concerns, you can contact me at community-qa@tiny.cloud. You can also join the discussion on our mailing list at the following link: community-qa+subscribe@tiny.cloud.