mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Disable Table Editing"
This commit is contained in:
commit
918c0e3266
|
@ -66,10 +66,6 @@ ve.ce.Surface = function VeCeSurface( $container, model, surface ) {
|
|||
}, this ) );
|
||||
|
||||
// Initialization
|
||||
try {
|
||||
document.execCommand( 'enableObjectResizing', false, false );
|
||||
document.execCommand( 'enableInlineTableEditing', false, false );
|
||||
} catch ( e ) { /* Silently ignore */ }
|
||||
rangy.init();
|
||||
ve.ce.Surface.clearLocalStorage();
|
||||
this.$.append( this.documentView.getDocumentNode().$ );
|
||||
|
|
|
@ -43,6 +43,12 @@ ve.Surface = function VeSurface( parent, dom, options ) {
|
|||
this.setupCommands();
|
||||
ve.instances.push( this );
|
||||
this.model.startHistoryTracking();
|
||||
|
||||
// Turn off native object editing. This must be tried after the surface has been added to DOM.
|
||||
try {
|
||||
document.execCommand( 'enableObjectResizing', false, false );
|
||||
document.execCommand( 'enableInlineTableEditing', false, false );
|
||||
} catch ( e ) { /* Silently ignore */ }
|
||||
};
|
||||
|
||||
/* Static Members */
|
||||
|
|
Loading…
Reference in a new issue