Read RSS Reed
search...

The unsupported TinyMCE BB Code Bug…

December 5th, 2008

TinyMCE is a nice WYSIWYG Editor for a Webapplication. In my application I’m very interested in allowing the users to use BB Code to optimize the visualisation of the texts (guestbooks, news comments, …). Before I released the TinyMCE Editor on my Webradio website, I did some tests.

1. At first, I entered the following text into my textarea:

2. After submit the form, I get this text displayed:

Now you can see that the text which is between the <strong> tag is now displayed as bold. But, it shouldn’t be! If I choose the BB code plugin I think the html tag should be disabled…

3. After submit the form again, I get this text displayed:

Well, now my HTML Tag is rendered as a bb code tag. That’s wrong. I want to display the html tag and not a formatted bb code text.

I searched for support, but nobody on the TinyMCE board helps me…
After some tests, I think, I fixed the bug.

Please change the _tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js file and add the following lines to line 47 (before replacing the old tags).

rep(/&amp;lt;/gi,"&amp;amp;lt;");
rep(/&amp;gt;/gi,"&amp;amp;gt;");

Download bugfix


Tags: , , , ,



2 Responses to “The unsupported TinyMCE BB Code Bug…”

  1. Spacefish Says:

    OMG, did you look at the tinyMCE js file? Have fun understanding it ;) 11k lines of code.. :-(

  2. Exi Says:

    Of course. It was “very” funny ;-)
    But I think I found the bug.

Leave a Reply