This project is read-only.

Empty <span> being removed

Topics: Troubleshooting
May 24, 2012 at 11:02 AM

I've just noticed a slight issue with adding blank spans into the content pages, they seem to disappear when not surrounded by a <div>.

I'm not sure why that would occur unless they're being stripped out by the WYSIWYG editor on a save.

I'm using them to create CSS sprites and they would be used for javascript some time in the future.


It's not really an issue right now but I'm more concerned about handing this to a client and them having issues in the future.

May 24, 2012 at 4:36 PM
Edited May 24, 2012 at 4:37 PM

I'm pretty sure this is because the TinyMCE editor strips those tags out. As far as I remember it strips out every tag that's empty, too, that's why it inserts a space into paragraphs too.

May 25, 2012 at 8:17 AM

I thought it might be but I just wanted to mention it.