Ticket #1934: 1934.patch

File 1934.patch, 1.0 KB (added by martinkou, 2 years ago)
  • editor/dialog/fck_specialchar.html

     
    4545        oEditor.FCKUndo.SaveUndoStep() ; 
    4646        parent.Selection.EnsureSelection() ; 
    4747        oEditor.FCK.InsertHtml( charValue || "" ) ; 
     48        if ( oEditor.FCKDialog.SelectionData ) 
     49                oEditor.FCKDialog.SelectionData = oEditor.FCK.EditorDocument.selection.createRange() ; 
    4850        window.parent.Cancel() ; 
    4951} 
    5052 
  • editor/fckdialog.html

     
    386386                EnsureSelection : function() 
    387387                { 
    388388                        if ( FCKDialog.SelectionData ) 
    389                                 FCKDialog.SelectionData.select() ; 
     389                        { 
     390                                try 
     391                                { 
     392                                        FCKDialog.SelectionData.select() ; 
     393                                } 
     394                                catch ( e ) {} 
     395                        } 
    390396                }, 
    391397 
    392398                /**