Jump to content

div in TinyMCE (solved)


mel47
 Share

Recommended Posts

Hi,

Just update to 3.0.226 this weekend and my content screw up. I'm unable to avoid div to get strip of code editor.

I try "extended_valid_elements" : "div" but without success. How I can achieve to keep div in TinyMCE?

Thanks!

Link to comment
Share on other sites

Hi @mel47,

are the divs converted to paragraphs? If so you have to disable this in the input tab under "Markup toggles".

1031035049_Bildschirmfoto2023-09-06um11_23_10.png.95e485ee88d31d215d2534141827c144.png

This works for me.

If the divs get stripped out while pasting, I think you have to allow them in the Pastefiler of the module settings: https://processwire.com/blog/posts/using-tinymce-6-in-processwire/#default-pastefilter-whitelist-rules

Regards, Andreas

  • Like 1
Link to comment
Share on other sites

  • mel47 changed the title to div in TinyMCE (solved)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...