Ready to get started?Download WordPress


WordPress Icons - SVG
[resolved] Prevent icon code removal when switching from Text to Visual? (4 posts)

  1. jf80
    Posted 8 months ago #

    If I add an icon to a post:
    <span data-icon="" style="font-size:1000%; color:green;"></span>

    I understand it must be done on the Text tab.

    If I switch to Visual then my icon code is removed.

    Is there any way around this?



  2. Evan Herman
    Plugin Author

    Posted 8 months ago #

    Hi jf80,

    This is a known issue when using the plugin. Unfortunately, from the research I've done on resolving this, the issue lies with the TinyMCE WYSIWYG text editor. One of the intended functionality of TinyMCE is stripping out any unfiltered HTML from the visual tab.

    The only way I was able to resolve the issue myself was by hacking away at the TinyMCE core (which is less than ideal as it will be overwritten on WP updates).

    Apparently with TinyMCE version 4.0 this issue has been remedied and switching between text and visual tabs no longer strips out the code. We have to wait for the WordPress core team to implement a newer version of TinyMCE before we no longer have this issue.

    Sorry about the inconvenience , I know how frustrating it can be to have code stripped away after spending a good deal of time writing it in the first place.

    Thanks for downloading the plugin!


  3. jf80
    Posted 7 months ago #

    Ok, thanks for responding.

  4. Evan Herman
    Plugin Author

    Posted 7 months ago #

    WordPress 3.9 will feature TINYmce v 4.0, which should (finally) resolve the issue of code being stripped.

    I also believe the code may be stripped due to the ampersand (&) in the icon code. Which, if that's the case, I'll have to re-code the icon codes my self.




You must log in to post.

About this Plugin

About this Topic


No tags yet.