开发者

Tinymce - problem with fontsize using bbcodes

开发者 https://www.devze.com 2023-03-06 20:01 出处:网络
i am using tinymce with the bbcodes-plugin. In generally, its working nicely, most of the bbcodes like [b] and [color] and so forth are transmitted into html within the textarea and safed as bbcodes i

i am using tinymce with the bbcodes-plugin. In generally, its working nicely, most of the bbcodes like [b] and [color] and so forth are transmitted into html within the textarea and safed as bbcodes into the database c开发者_C百科orrectly.

The thing with font-size is the following, when formating a string the first time it is correctly changing its size and is safed correctly as bbcode into the database. But when i open that record again to edit it, the bbcode is not converted to html, so in the textarea there is something like

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

Do you have any hints on this? Ive been searching the web yesterday and today, didnt find anything that could solve this.

Regards, Maschek


This is caused by BBCode plugin in TinyMCE unable to transform [size] tag back to HTML. I've logged a TinyMCE bug #5327 with a fix patch attached. You can download latest TinyMCE source, apply the patch and compile it (or wait until the patch is reviewed and released).

The related source code is located at plugins/bbcode/editor_plugin_src.js

0

精彩评论

暂无评论...
验证码 换一张
取 消