• When i add an email link as below – it gets stripped out (removed) if i switch from text to visual ?

    before –

    Get In Touch <a href="mailto:me@my-domain?Subject=Hi" target="_top"><i class="fa fa-envelope fa-lg"></i></a>

    after

    Get In Touch <i class="fa fa-envelope fa-lg"></i>

    I read a post that said this would be fixed ?

    how can i stop this ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This isn’t considered a bug because the way to preview changes has always been through the ‘Preview’ button, and not by switching from Text to Visual. That’s the reason why it hasn’t been fixed in core.

    There is a plugin out there to prevent this from happening, I just can’t remember the name.

    Thread Starter andy0829

    (@andy0829)

    pretty annoying … because “clients” …

    Found some code that stops it , works for me , added to functions.

    function myformatTinyMCE($in) {
        $in['verify_html']=false;
        return $in;
    }
    add_filter('tiny_mce_before_init', 'myformatTinyMCE' );

    Thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘editor stripping out email link when switching – visual – text ??’ is closed to new replies.