question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

valid_elements isn't working properly (with pagebreak)

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
arlomediacommented, Aug 14, 2017

@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.

0reactions
thedrjimcommented, Sep 25, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found