#1889: Switching between source view and normal causes attributes to swap 
(Gecko)
-----------------------------+----------------------------------------------
 Reporter:  rekcor           |        Type:  Bug             
   Status:  new              |    Priority:  Normal          
Milestone:                   |   Component:  General         
  Version:  FCKeditor 2.5.1  |    Keywords:  attributes, swap
-----------------------------+----------------------------------------------
 For example:
 {{{
 <img src="a.gif" alt="b />
 }}}
  becomes
 {{{
 <img alt="b src="a.gif" />
 }}}
  when switching two times between normal view and normal view.

 This is undesirable behavior, because e.g. user defined regular
 expressions become unreliable.

 The bug is caused by the function FCKXHtml._AppendAttributes in
 fckxhtml_gecko.js, where it says


 {{{
 for ( var n = 0 ; n < aAttributes.length ; n++ )
 }}}


 which should become:


 {{{
 for ( var n = aAttributes.length-1 ; n >= 0; n-- )
 }}}


 See also http://www.fckeditor.net/forums/viewtopic.php?f=5&t=4987

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1889>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to