WYSIWYG strips out unordered list
The WYSIWYG editor (7.8) in an XHTML block is stripping out the following unordered list:
<div class="social-links"> <ul
class="socialicons"> <li><a class="facebook"
href="http://www.facebook.com/unioncollege" target="_blank"
title="Facebook"></a></li> <li><a
class="twitter" href="http://twitter.com/unioncollegeny"
target="_blank" title="Twitter"></a></li>
</ul> </div>
Oddly, it doesn't get stripped if I put a character in between at least one of the anchor tags:
<div class="social-links"> <ul
class="socialicons"> <li><a class="facebook"
href="http://www.facebook.com/unioncollege" target="_blank"
title="Facebook">a</a></li> <li><a
class="twitter" href="http://twitter.com/unioncollegeny"
target="_blank" title="Twitter">a</a></li>
</div>
Or I omit the div tag:
<li><a class="facebook"
href="http://www.facebook.com/unioncollege" target="_blank"
title="Facebook"></a></li> <li><a
class="twitter" href="http://twitter.com/unioncollegeny"
target="_blank" title="Twitter"></a></li>
We've decided to use a Text block to avoid the code stripping, but I was wondering how we can check if this is a TinyMCE bug?
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 06 Jan, 2014 07:07 PM
Hi,
This could either be a bug, or more likely a result of the way we have TinyMCE configured that is causing the empty
<a>
tags to be removed..If you don't need a visual preview, I would definitely suggest using an XML Block here as this would give you a code editor minus the TinyMCE cleanup. Another option could be to add a space entity
 
inside of the<a>
tags to avoid the empty tags from being removed.Please let me know if you have any questions.
Thanks!
Ryan Griffith closed this discussion on 14 Jan, 2014 01:26 PM.