Ticket #4734: 4734_2.patch
File 4734_2.patch, 1.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/selection/plugin.js
209 209 if ( saveEnabled ) 210 210 { 211 211 var doc = editor.document, 212 sel = doc && doc.$.selection; 212 sel = editor.getSelection(), 213 nativeSel = sel && sel.getNative(); 213 214 214 215 // There is a very specific case, when clicking 215 216 // inside a text selection. In that case, the … … 219 220 // range at the very start of the document. In 220 221 // such situation we have to test the range, to 221 222 // be sure it's valid. 222 if ( testIt && sel && sel.type == 'None' )223 if ( testIt && nativeSel && nativeSel.type == 'None' ) 223 224 { 224 225 // The "InsertImage" command can be used to 225 226 // test whether the selection is good or not. … … 232 233 } 233 234 } 234 235 235 savedRange = sel && sel.createRange();236 savedRange = nativeSel && sel.getRanges()[ 0 ]; 236 237 237 238 checkSelectionChangeTimeout.call( editor ); 238 239 }