#2263: Editor - anchor - java script error
------------------------+---------------------------------------------------
Reporter: gobinathb | Owner: martinkou
Type: Bug | Status: closed
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.6
Resolution: fixed | Keywords: Confirmed IE Review+
------------------------+---------------------------------------------------
Comment(by Scott):
Hello,
The fix for #2263 is breaking source protection in IE SVN nightly.
http://dev.fckeditor.net/ticket/2263
Basically the elements array is completely nulled out.
ToElements : function()
{
var node = FCK.EditorDocument.createElement( 'div' ) ;
for ( var i = 0 ; i < this.Elements.length ; i++ )
{
if ( typeof( this.Elements[i] ) == 'string' )
{
node.innerHTML = this.Elements[i] ;
this.Elements[i] = node.firstChild ;
<--------- This line node.firstChild is null
}
}
}
To replicate, visit
http://www.fckeditor.net/nightly/fckeditor/_samples/default.html
Click source
Add <!-- test --> to the source,
Press Source again to revert to design mode
Press Source again, and you have a "null" cannot be null
--
Ticket URL: <http://dev.fckeditor.net/ticket/2263#comment:11>
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