Wysiwyg cuts down content

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
imlegend
Forum Members
Forum Members
Posts: 11
Joined: Wed Jun 19, 2013 12:56 pm

Wysiwyg cuts down content

Post 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.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Wysiwyg cuts down content

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
imlegend
Forum Members
Forum Members
Posts: 11
Joined: Wed Jun 19, 2013 12:56 pm

Re: Wysiwyg cuts down content

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Wysiwyg cuts down content

Post by Dr.CSS »

If it cuts it when the wysiwyg is on turn it off for that GCB...
imlegend
Forum Members
Forum Members
Posts: 11
Joined: Wed Jun 19, 2013 12:56 pm

Re: Wysiwyg cuts down content

Post 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.
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am
Location: Brisbane, Australia

Re: Wysiwyg cuts down content

Post 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.
Post Reply

Return to “The Lounge”