12. July 2009

bbPress compatibility plugin for TinyMCE


I’m currently using the WYSIWYG editor TinyMCE with bbPress for a project. Unfortunately, bbPress doesn’t like it when it gets <p> tags through TinyMCE and therefore messes up the post. I have written an (extremely) simple plugin for TinyMCE which transforms <p>s into double linebreaks before posting therefore preserving compatibility. <br />s are transformed into single linebreaks.

The plugin is based on the BBCode plugin by Moxiecode Systems AB distributed together with TinyMCE, so they deserve most of the credit. I only adjusted a few replacement calls.

Currently there is one disadvantage: When you want to edit an existing post, double linebreaks are not converted back into <p>s, but into double <br />s. This usually looks just fine, but is not perfect.

Installation

Unpack the zip file into the TinyMCE plugins folder. Add “bbpress” to the list of activated plugins.
Important: Also set remove_linebreaks to false, or all linebreaks will get removed by TinyMCE.

Download

bbPress Plugin for TinyMCE 0.2
bbPress Plugin for TinyMCE 0.1

Topics: bbPresspluginsTinyMCE

No Comments »

No comments yet.

TrackBack URI

Sorry, the comment form is closed at this time.

Powered by WordPress

Subscribe to RSS Feed
blogoscoop