Page 1 of 1
[SOLVED] HTML stripped from WYSIWYG when editing
Posted: Thu Aug 02, 2012 11:11 pm
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?
Re: HTML stripped from WYSIWYG when editing
Posted: Thu Aug 02, 2012 11:25 pm
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.
Re: HTML stripped from WYSIWYG when editing
Posted: Thu Aug 02, 2012 11:44 pm
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
Re: HTML stripped from WYSIWYG when editing
Posted: Fri Aug 03, 2012 8:16 pm
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.
Re: HTML stripped from WYSIWYG when editing
Posted: Sat Aug 04, 2012 2:59 pm
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]"