Page 1 of 1

Wysiwyg cuts down content

Posted: Mon Nov 03, 2014 11:13 am
by imlegend
Hello. I got such issue: When I enable wysiwyg editor, some of my page content just disapears.
Here is what i want to have in global content block:

Code: Select all


<li class = "noclegi">
<a data-lightbox="image-1" href="/uploads/images/1.jpg">
<div id = "photo1"></div>
<div class = "opis">Przykładowy opis</div>
</a></li>
<li class ="konferencje">
<a data-lightbox="image-1" href="/uploads/images/2.jpg">
<div id = "photo2"></div>
<div class = "opis">Przykładowy opis</div>
</a></li>
<li class ="wesela"> 
<a data-lightbox="image-1" href="/uploads/images/3.jpg">
<div id = "photo3"></div>
<div class = "opis">Przykładowy opis</div>
</a></li>
</ul>
But when I click "save" and enter again this content - it cuts down all "a hrefs" attriubtes. How to prevent it?
I have installed TinyMCE to solve it, and I tryed to change its settings, but so far nothing works.
Help with this issue pls.

Re: Wysiwyg cuts down content

Posted: Mon Nov 03, 2014 9:35 pm
by JohnnyB
check to make sure TinyMCE is using HTML5 and not trying to clean the HTML. I think it is under the advanced settings.

Re: Wysiwyg cuts down content

Posted: Mon Nov 03, 2014 9:43 pm
by imlegend
Thanks, but I've already tryed it. And unfortunately it didn't work.

I've read on this forum a topic with the same issue but old( lower version of cms).

http://forum.cmsmadesimple.org/viewtopi ... ce&start=0
There are some useful tips for my problem but i cannot find files which are mention there. Maybe its because of my later version of cms?

Re: Wysiwyg cuts down content

Posted: Wed Nov 05, 2014 2:44 pm
by Dr.CSS
If it cuts it when the wysiwyg is on turn it off for that GCB...

Re: Wysiwyg cuts down content

Posted: Wed Nov 05, 2014 5:16 pm
by imlegend
I had to rewrite html code.
I used <img> tags inside <li>, and I resign from images as css background tags . Now its working.

Re: Wysiwyg cuts down content

Posted: Mon Nov 17, 2014 5:49 am
by gocreative
For the record (anyone reading this in future, really): This wouldn't have worked because the HTML elements were not nested in a valid way (DIVs inside As). TinyMCE has an option to override this, I believe.