WordPress.org

Ready to get started?Download WordPress

Forums

force to paste as plain text wysiwyk editor (5 posts)

  1. hilj
    Member
    Posted 3 years ago #

    Hello,

    I would like to force users to paste as plain text to the wysiwyk editor. On a multiauthor blog it is impossible to educate all users to paste always as plain text.

    Here is a good take on the problem. Pop up the paste as plain text dialog when pasting. The thing is, I can't get it to work for wordpress. Where to put the javasript? I've tried to put in the header and the footer of the admin area.

    Also is it wise to filter the the_content() in this fashion?

    Thanks for all the help :)

  2. hilj
    Member
    Posted 3 years ago #

    Anybody? :)

  3. hilj
    Member
    Posted 3 years ago #

    Here is something about this but still have no idea how to implement it on WP http://tinymce.moxiecode.com/forum/viewtopic.php?pid=84932#p84932

  4. rtomasso
    Member
    Posted 3 years ago #

    Have you tried using strip_tags() on the input?

  5. hilj
    Member
    Posted 3 years ago #

    No, I have not, it works for stuff that is pasted from email or a website. But how about the crap that comes from pasting from Word, is there an easy way to strip that?

    For some of you that may wonder the same thing, here is how to use the strip_tags on the_content http://wordpress.org/support/topic/how-to-strip_tags-the_content?replies=3

    Thank you so much :) This was very helpful!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags