[SOLVED] HTML stripped from WYSIWYG when editing

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

[SOLVED] HTML stripped from WYSIWYG when editing

Post by sugna »

CMSMS 1.11

Site Development:
http://216.70.71.140/

Editor
TinyMCE 2.9.10.1

I use this because the new standard for CMSMS MicroTiny doesn't allow for image upload.

When putting structure in a page via TinyMCE for example

<div class="team-logo-wall">

THIS DIV GETS REMOVED
<div class="team-wall-logos">STUFF</div>


</div>


Any thoughts?
Last edited by sugna on Sat Aug 04, 2012 2:59 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: HTML stripped from WYSIWYG when editing

Post by Jos »

WYSIWYG editors are not meant to manually enter html, they are meant to generate html automatically and clean it up to prevent validation-errors
sugna wrote:I use this because the new standard for CMSMS MicroTiny doesn't allow for image upload.
You can enable an insert-image button via the MicroTiny admin section, but unfortunately it indeed doesn't have an upload function.
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

Re: HTML stripped from WYSIWYG when editing

Post by sugna »

I understand that.

But I have been able to put logic using "Edit HTML Source or by turning off "Use WYSIWYG editor" in the previous version.

So I'm using a Global Content Block for now

Here's the page
http://216.70.71.140/index.php?page=maj ... c-trainers
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: HTML stripped from WYSIWYG when editing

Post by carasmo »

This worked for me:

Go to TinyMCE under the Extensions menu

Choose the "Advanced" tab

Then in the Extra configuration area, paste:

Code: Select all

extended_valid_elements:"div[id|class|title]"
The 2.9.6 version had no problems with divs, as far as I could tell, but it did have issues with figure, section, article, etc., however, this is not the ideal. It would be better to use Listit2 to make that page, much, much easier.
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

Re: HTML stripped from WYSIWYG when editing

Post by sugna »

Awesome works perfectly...Thank You Carasmo!

Answer:

Go to TinyMCE under the Extensions menu

Choose the "Advanced" tab

Then in the Extra configuration area, paste:

Code: Select all

extended_valid_elements:"div[id|class|title]"
Post Reply

Return to “The Lounge”