Ticket #7819 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

Wrong Font size using BBCode plugin

Reported by: krst Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6
Keywords: Cc:

Description

Environment

CKE 3.6, Opera 11, IE6/7, Chrome

TC

  • Load BBCode sample
  • clear content
  • type "default"
  • change font size to 200, type 200
  • change font size to 150, type 150 See that newly typed text is bigger, than previous, and element path contains two size
  • repeat for other font sizes

Result

the size tags, are not closed after changing font size to other values:

default[size=200]200[size=150]150[size=120]120[size=100]100[size=50]50[size=30]30[size=300]300[size=200]200[/size][/size][/size][/size][/size][/size][/size][/size]

Attached screen

Expected

default[size=200]200[/size][size=150]150[/size][size=120]120[/size][size=100]100[/size][size=50]50[/size][size=30]30[/size][size=300]300[/size][size=200]200[/size]

Attachments

zrzut_ekranu-10.png (19.2 KB) - added by krst 3 years ago.

Change History

Changed 3 years ago by krst

comment:1 Changed 3 years ago by wwalc

  • Status changed from new to confirmed

It happens because percent values are used to set the font size (by design).

The following code:

[size=200]200 [size=150]200+150[/size] 200[/size]

is translated into:

<span style="font-size: 200%;">200 <span style="font-size: 150%;">200+150</span> 200</span>

It looks like certains systems do not support nested [size] tags so it looks like something that could be improved in the future.

comment:2 Changed 3 years ago by garry.yao

This's something definitely need a fix, while it currently depends on #7498.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy