Blog

WordPress Plain Text Paste Plugin

Posted August 31, 2006. Filed under code, wordpress

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.

Need to get everyone on the same page? Try Ginger! Hold productive discussions with your teammates across the globe or across the hall. Build consensus, hash out complex ideas, and eliminate meetings altogether.

Looking for help building your web app? Lincoln Loop is a full service web studio focusing on Django development. See what we can do.

Comments are closed for this post.