Primary image for WordPress Plain Text Paste Plugin

WordPress Plain Text Paste Plugin

This plugin is currently incompatible with WP 2.1. I hope to update it shortly. Check back here for updates.
Version 0.3 is compatible with WordPress 2.1

This plugin adds buttons to the WordPress rich text editor (TinyMCE) for pasting in clipboard content as plain text.

plain text paste screenshotThis solves the problem of users needing to paste Microsoft Word documents, web pages, or any other rich text content into a plain text editor such as notepad to strip out the HTML nasties that have a tendency to ruin a blog’s layout. By using TinyMCE’s paste plugin, the plugin is smart enough to maintain some basic formatting.

Go ahead and take it for a spin. Extract nds-paste folder from the archive and copy it to wp-content/plugins.
nds-paste-0.2.zip
nds-paste-0.2.tar.gz

Developers note: You should be able to use this code to port other TinyMCE plugins into Wordpress as well. I had to use an older version of TinyMCE’s paste that did not call the addPlugin() function. Once I found a working version, the only thing required was adjusting the paths to hit the new directory.

I’d love to find a way to have this plugin hook into a CTRL+V keypress and open automatically. I believe FCKeditor provides this functionality. If anyone has any suggestions, let me know.

Peter Baumgartner

About the author

Peter Baumgartner

Peter is the founder of Lincoln Loop, having built it up from a small freelance operation in 2007 to what it is today. He is constantly learning and is well-versed in many technical disciplines including devops, …

View Peter's profile