WYSIWYG strips out unordered list

espanae's Avatar

espanae

06 Jan, 2014 06:57 PM

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?

  1. 1 Posted by Ryan Griffith on 06 Jan, 2014 07:07 PM

    Ryan Griffith's Avatar

    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 &#160; inside of the <a> tags to avoid the empty tags from being removed.

    Please let me know if you have any questions.

    Thanks!

  2. Ryan Griffith closed this discussion on 14 Jan, 2014 01:26 PM.

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

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM