<![CDATA[ How to STOP TinyMCE from adding and removing code? - My Forums]]> https://forums.modx.com/thread/?thread=102357 <![CDATA[How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551579
Please help. Thanks.]]>
yankindeez Jun 08, 2017, 01:27 AM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551579
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551638 Quote from: yankindeez at Jun 09, 2017, 10:10 PM
Thanks for the replies, I'm using TinyMCEWrapper now, it doesn't delete my <section> tags, but it still adds the <p> around [[$chunk]] calls

The reason I'm using </p><section> tags is because I have a template for the content pages, and section tags for certain page attributes/styling. I'm not sure how else to do it without creating a template for each page, so if anyone has any suggestions I'd be happy to hear them</section></section>

Create your templates and then try to place everything in chunks so all the client has to do is edit the content or template variables. Otherwise they'll inevitably screw it up if they delete hidden code.]]>
lkfranklin Jun 10, 2017, 10:36 AM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551638
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551632 https://stackoverflow.com/questions/13841986/tinymce-adding-p-tags-automatically

Also:

forced_root_block : ""
]]>
BobRay Jun 09, 2017, 10:36 PM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551632
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551629
The reason I'm using <section> tags is because I have a template for the content pages, and section tags for certain page attributes/styling. I'm not sure how else to do it without creating a template for each page, so if anyone has any suggestions I'd be happy to hear them]]>
yankindeez Jun 09, 2017, 10:10 PM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551629
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551626 extended_valid_elements option.]]> BobRay Jun 09, 2017, 08:56 PM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551626 <![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551619 TinyMCE is designed to and often used to build pages from scratch, starting from <html> and <form>

I guess some projects are not just pure content <p> and <b>]]>
donshakespeare Jun 09, 2017, 04:23 PM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551619
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551611 Bruno17 Jun 09, 2017, 09:14 AM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551611 <![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551606 But one needs to wear the right gloves when playing with this kind of fire.

The right gloves are the proper TinyMCE config and plugins, both of which crucials are lacking in the Wordpress' official version and MODX's.

Long story shortened, anything is possible with this RTE.

Enter TinymceWrapper!]]>
donshakespeare Jun 09, 2017, 12:19 AM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551606
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551601
BTW, I feel your pain. I do a blog (not the one at Bob's Guides), where I'm forced to use WordPress. The WP version of TinyMCE will actually *remove* some of thecode in pre sections! Not just tags, but the stuff inside the tags as well. There have been a few cases where it was literally impossible to display what I wanted to show with proper syntax highlighting.]]>
BobRay Jun 08, 2017, 09:16 PM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551601
<![CDATA[Re: How to STOP TinyMCE from adding and removing code?]]> https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551580 lkfranklin Jun 08, 2017, 05:34 AM https://forums.modx.com/thread/102357/how-to-stop-tinymce-from-adding-and-removing-code#dis-post-551580