Ticket #3593: 3593_3.patch
File 3593_3.patch, 1.6 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
358 358 // Disable and re-enable the body to avoid IE from 359 359 // taking the editing focus at startup. (#141 / #523) 360 360 body.disabled = true; 361 body.contentEditable = true;362 361 body.removeAttribute( 'disabled' ); 363 362 } 364 else 365 domDocument.designMode = 'on'; 363 // Firefox require design-mode been turned on to make 364 // the cursor blinking when editing frame window gain 365 // keyboard focus. 366 else if ( CKEDITOR.env.gecko ) { 367 domDocument.designMode = 'on'; 368 } 369 370 // Standard way to enable rich-text editing on the 371 // whole page beside Firefox2. 372 body.contentEditable = true; 373 366 374 367 375 // IE, Opera and Safari may not support it and throw 368 376 // errors. … … 407 415 focusTarget.on( 'blur', function() 408 416 { 409 417 editor.focusManager.blur(); 418 419 if( CKEDITOR.env.gecko ) { 420 editor.document.$.designMode = 'on'; 421 } 410 422 }); 411 423 412 424 focusTarget.on( 'focus', function() … … 438 450 } 439 451 440 452 editor.focusManager.focus(); 453 454 455 if( CKEDITOR.env.gecko ) 456 setTimeout( function() 457 { 458 editor.document.$.designMode = 'off'; 459 }); 441 460 }); 442 461 443 462 var keystrokeHandler = editor.keystrokeHandler;