Tinymce - problem with fontsize using bbcodes

I am using tinymce with bbcodes-plugin. As a rule, its work is good, most of bbcodes, such as [b] and [color] etc., are transmitted in html in a text field and are safely stored as bbcodes in the database.

The thing with the font size is the following: when formatting a string at the first correct change in its size, it is correctly stored in bbcode in the database. But when I open this entry again for editing, bbcode is not converted to html, so there is something like in the text box

"[size = medium] rfeferf [/ size]" instead of the text in the right size.

Do you have any hints of this? I searched the Internet yesterday and today, did not find anything that could solve this.

Regards, Maskek

+3
source share
1 answer

This is caused by connecting the BBCode plugin to TinyMCE, which cannot convert the [size] tag to HTML. I registered a TinyMCE # 5327 bug with an attached patch . You can download the latest TinyMCE source, apply the patch and compile it (or wait for the patch to be reviewed and released).

The related source code is in the plugins / bbcode / editor_plugin_src.js

+2
source

All Articles