WordPress.org

Ready to get started?Download WordPress

Forums

Rich Text Tags
[resolved] filter (6 posts)

  1. mebrand
    Member
    Posted 3 years ago #

    I used to use "Category Description Editor" plugin and I've always think about "Media bar" to insert images solution. Your plugin doing such importamt thing well, but there is one problem here - it is removing <br /> tags each time I loading some data to edit and each time when I try to save data back and when I toggle html to wysiwyg mode vice-verse.

    remove_filter( 'pre_term_description', 'wpautop' ) helps to prevent "on load" filtering, but I can't find solution for other cases: toggling and saving.

    tnx.

    http://wordpress.org/extend/plugins/rich-text-tags/

  2. Nabha
    Member
    Posted 3 years ago #

    I'm having the same problem. It acts like wpautop is missing from the javascript rich text thing.

    What's interesting (to me) is that the
    tags aren't ACTUALLY being removed, at least from what I can tell. You can still use something like

    wpautop( $term->description );

    ... to have it display correctly in your theme.

    I completely agree that this is a great plugin. I'm sure this is just a small bug.

  3. mebrand
    Member
    Posted 3 years ago #

    Yes, Nabha absolutely right. It's working solution till the author make change for TinyMCE.init.

    The ugly solution I have - TinyMCE Advanced Plugin install and configuratin it for Stop removing the <p> and <br /> tags when saving and show them in the HTML editor. It is using wpautop() like Nabha do.

  4. Nabha
    Member
    Posted 3 years ago #

    Oh, I see -- thanks, mebrand. So it is removing the tags, but wpautop puts them back in.

    Yes, I came across the suggestion of using TinyMCE.init, as well, but didn't see it in the plugin, and didn't have time at the moment to figure out how to set it up. But I imagine that is the right way to fix it, as you say.

  5. Zack Katz
    Member
    Plugin Author

    Posted 3 years ago #

    This should be fixed in Version 1.2, just released. Please confirm that this update has fixed the problem - it did for me.

    Thanks for posting these issues - it helps make a better plugin for everyone!

  6. mebrand
    Member
    Posted 3 years ago #

    Great! Thank you, Zack. I've just update your plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic