#3649: Incorrect selected size item on FontSize menu on continous typing and 
font-
size selection
----------------------------------+-----------------------------------------
 Reporter:  dqbai                 |       Owner:                 
     Type:  Bug                   |      Status:  new            
 Priority:  Normal                |   Milestone:                 
Component:  Core : Styles         |     Version:  FCKeditor 2.6.4
 Keywords:  font size, font name  |  
----------------------------------+-----------------------------------------

Comment(by dqbai):

 '''Analyze the problem'''[[BR]]

 Look at the loop in function
 FCKToolbarFontsCombo.prototype.StyleCombo_OnBeforeClick of
 fcktoolbarfontscombo.js file.[[BR]]
 The html generated by FCKeditor after our input is[[BR]]
 {{{
 <span style="font-size: small;">abc<span style="font-size:
 large;">XYZ</span></span>
 }}}
 The first element in path.Elements is the span tag enclosing XYZ with
 "large" font size, the second element from path.Elements is the span tag
 enclosing abc with "small" font size. The loop serches menu items at
 first, this has caused the second element "abc" style as alive style to be
 selected on font size menu, since "small" is priorior than "large", this
 is wrong.[[BR]]
 Which expected is the first element of element path to be hit, and its
 font size style "large" to be selected on menu.[[BR]]
 The correct logic will keep path elements as outer loop, and menu items as
 inner loop.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3649#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to