Changeset 621

Show
Ignore:
Timestamp:
2007-08-03 11:38:11 (16 months ago)
Author:
martinkou
Message:

Fixed #1033 and #141 : Fixed the issue where pasting does not work in the editing area just after switching from Source mode to WYSIWYG mode.

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

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r620 r621  
    175175                oDoc.body.removeAttribute( "disabled" ) ; 
    176176 
     177                var delayedExec = function() 
     178                { 
     179                        var range = oDoc.selection.createRange() ; 
     180                        range.moveEnd( "character", 1 ) ; 
     181                        range.select() ; 
     182                        range.collapse( true ) ; 
     183                        range.select() ; 
     184                } 
     185                setTimeout( delayedExec, 1 ) ; 
     186 
    177187                /* The following commands don't throw errors, but have no effect. 
    178188                oDoc.execCommand( 'AutoDetect', false, false ) ; 
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r620 r621  
    130130                this.Events.FireEvent( 'OnStatusChange', newStatus ) ; 
    131131 
    132                 // Kludge for #141... yet more code to workaround IE bugs 
    133                 var range = this.EditorDocument.selection.createRange() ; 
    134                 range.moveEnd( "character", 1 ) ; 
    135                 range.select() ; 
    136                 range.collapse( true ) ; 
    137                 range.select() ; 
    138                 return ; 
    139132        }, 
    140133