#2368: IE: Protected source for comments is broken
----------------------+-----------------------------------------------------
  Reporter:  fredck   |       Owner:                 
      Type:  Bug      |      Status:  new            
  Priority:  Normal   |   Milestone:  FCKeditor 2.6.3
 Component:  General  |     Version:  SVN            
Resolution:           |    Keywords:  Confirmed IE   
----------------------+-----------------------------------------------------

Comment(by fredck):

 The following is a proposal fix for the part of the code that is throwing
 the error:

 {{{
 #!diff
 Index: D:/FCKeditor/SVN/FCKeditor/local/editor/_source/internals/fck.js
 ===================================================================
 --- D:/FCKeditor/SVN/FCKeditor/local/editor/_source/internals/fck.js
 (revision 2221)
 +++ D:/FCKeditor/SVN/FCKeditor/local/editor/_source/internals/fck.js
 (working copy)
  -1111,8 +1111,10 @@
                 {
                         if ( typeof( this.Elements[i] ) == 'string' )
                         {
 -                               node.innerHTML = this.Elements[i] ;
 -                               this.Elements[i] = node.firstChild ;
 +                               // For IE, we need to do this trick to
 avoid loosing comment
 +                               // only HTML.
 +                               node.innerHTML = '<div>&nbsp;</div>' +
 this.Elements[i] ;
 +                               this.Elements[i] = node.removeChild(
 node.childNodes[1] ) ;
                         }
                 }
         }
 }}}

 But then, there are still other things to get fixed to make it work.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2368#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to