Opened 12 years ago
Last modified 11 years ago
#10591 confirmed Bug
Bug-Fix bbcode plugin: Font-Size
| Reported by: | t_gnther | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Core : Output Data | Version: | |
| Keywords: | Cc: |
Description
The Problem here is that before the tagName was just set, if the value is a percental value, this solution works great ... Plugin.js line 652 - 656
tagName = 'size';
var percentValue = value.match( /(\d+)%$/ );
if ( percentValue ) {
value = percentValue[ 1 ];
}
Change History (5)
comment:2 Changed 12 years ago by
| Status: | new → confirmed |
|---|
comment:3 Changed 12 years ago by
| Keywords: | bbcode font-size removed |
|---|

If you download from builder, CKEditor standard version plus http://ckeditor.com/addon/font and http://ckeditor.com/addon/bbcode plugins, install it on server and then you open replacebycode.html sample page and apply size to sample word, you will get
=72pxfooafter switching to source mode instead of[size=72]foo[/size].The same thing happens when you open bbcode sample and apply px instead of % to
fontSize_sizes: "30/30px;50/50px;100/100px;120/120px;150/150px;200/200px;300/300px",Please note that bbcode has no standard defined thus bbcode plugin is more of a starting point for developers who want to adjust it to their needs then working for every possible case solution.
Fix provided by @t_gnther seems to work