Ticket #6615: 6615_2.patch
File 6615_2.patch, 1.6 KB (added by , 14 years ago) |
---|
-
_source/plugins/tableresize/plugin.js
161 161 162 162 var leftSideCells, rightSideCells, leftShiftBoundary, rightShiftBoundary; 163 163 164 function toggleDesignMode( state ) 165 { 166 document.getBody().$.contentEditable = !!state; 167 } 168 164 169 function detach() 165 170 { 166 171 pillar = null; … … 171 176 resizer.removeListener( 'mousedown', onMouseDown ); 172 177 resizer.removeListener( 'mousemove', onMouseMove ); 173 178 179 needsIEHacks && toggleDesignMode( 1 ); 174 180 document.getBody().setStyle( 'cursor', 'auto' ); 175 181 176 182 // Hide the resizer (remove it on IE7 - #5890). … … 277 283 function onMouseDown( evt ) 278 284 { 279 285 cancel( evt ); 286 needsIEHacks && toggleDesignMode( 1 ); 280 287 281 288 resizeStart(); 282 289 … … 331 338 }); 332 339 333 340 // In IE6/7, it's not possible to have custom cursors for floating 334 // elements in an editable document. Show the resizer in that case, 335 // to give the user a visual clue. 336 needsIEHacks && resizer.setOpacity( 0.25 ); 341 // elements in an editable document. 342 needsIEHacks && toggleDesignMode(); 337 343 338 344 resizer.on( 'mousedown', onMouseDown, this ); 339 345 … … 437 443 } 438 444 439 445 var pillar = getPillarAtPosition( pillars, evt.$.clientX ); 440 if ( pillar ) 446 447 // Skip mouse drag/drop/selection. 448 if ( pillar && !evt.$.button ) 441 449 { 442 450 !resizer && ( resizer = new columnResizer( editor ) ); 443 451 resizer.attachTo( pillar );