I have a
wp_editor(); on my plugin settings page.
I also have enabled the "Font Size" drop down in TinyMCE.
After highlighting text in the
wp_editor(); and selecting a font size from the editor's drop down menu, the font size is adjusted appropriately (directly in the editor).
However, after saving my plugin settings using
update_option(); and the plugin settings page reloads... The
<span style="font-size: 18px;">highlighted text</span> is removed, leaving me with only "highlighted text" without span tags wrapping it to adjust the font size.
I tried investigating the
wp_editor(); code, along with the
update_option(); code, to see if maybe there was some sort of stripping/sanitization going on.
Any clue why a
wp_editor(); span tag would be removed while saving it's contents to an option?
Side note: It seems like only the span tags are being stripped for some reason. I just tried using underline, and that was removed as well.