#2079: Function such as "Right Justify" affect more lines than it should
--------------------------------+-------------------------------------------
 Reporter:  PavelZ              |        Type:  Bug      
   Status:  new                 |    Priority:  Normal   
Milestone:                      |   Component:  General  
  Version:  FCKeditor 2.5 Beta  |    Keywords:  Confirmed
--------------------------------+-------------------------------------------

Comment(by davidh):

 Part of the problem is in fckdomrange.js, line 694, where entermode is
 used to determine what range to select. That is: either the complete node
 (aa/bb/cc/) or just a part (bb). For fckjustifycommand.js this is a little
 weird (if you turn the entermode and shiftentermode around you get
 different behaviour when justifying even though you can generate the same
 html). The lines are (and after):

 {{{
 if ( this.StartBlock && FCKConfig.EnterMode != 'br' && unit ==
 'block_contents' )
   this.SetStart( this.StartBlock, 1 ) ;
 }}}

 The second part of the problem is that if only a part is selected to be
 justified then fckdomrangeiterator.js (line 271) will trigger another
 effect. Either a 'cloneNode' (if a parent is available) or (depending on
 entermode again:) a div or p is created. In the first case it should use a
 span tag imho (for this situation).

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2079#comment:3>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to