Opened 11 years ago

Last modified 9 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 11 years ago by Jakub Ś

Status: newconfirmed

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 =72pxfoo after 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.

Version 0, edited 11 years ago by Jakub Ś (next)

comment:3 Changed 10 years ago by Wiktor Walc

Keywords: bbcode font-size removed

comment:4 Changed 9 years ago by Jakub Ś

#11218 was marked as duplicate.

comment:5 Changed 9 years ago by Jakub Ś

#12628 was marked as duplicate.

comment:6 Changed 9 years ago by Jakub Ś

Perhaps this issue is a result or at least related to #7819.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy