Changeset 422

Show
Ignore:
Timestamp:
2007-07-08 19:16:01 (17 months ago)
Author:
martinkou
Message:

Fix for #100 : "NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7" on Safari.
Fixed undefined value error in fckundo.js on Safari.

Location:
FCKeditor/trunk/editor/_source/internals
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fcktools_gecko.js

    r411 r422  
    5151{ 
    5252        var e = documentElement.createElement( "STYLE" ) ; 
    53         e.innerHTML = cssStyles ; 
     53        e.appendChild( documentElement.createTextNode( cssStyles ) ) ; 
    5454        documentElement.getElementsByTagName( "HEAD" )[0].appendChild( e ) ; 
    5555} 
  • FCKeditor/trunk/editor/_source/internals/fckundo.js

    r410 r422  
    101101                return ; 
    102102        // Save the selection and caret position in the first undo level for the first change. 
    103         else if ( this.CurrentIndex == 0 && sHtml == this.SavedData[0][0] ) 
     103        else if ( this.CurrentIndex == 0 && this.SavedData.length && sHtml == this.SavedData[0][0] ) 
    104104        { 
    105105                this.SavedData[0][1] = this._GetBookmark() ;