From 19a02f3798881e03cd092ad9b7864fc522f94f38 Mon Sep 17 00:00:00 2001 From: Inez Korczynski Date: Fri, 18 May 2012 11:40:22 -0700 Subject: [PATCH] Disable objectResizing and inlineTableEditing within execCommand Change-Id: I06406bfd56e01e72b157fd8cb50da8d6173edc25 --- modules/ve2/ce/ve.ce.Surface.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ve2/ce/ve.ce.Surface.js b/modules/ve2/ce/ve.ce.Surface.js index 180e35d568..5270fc0c5c 100644 --- a/modules/ve2/ce/ve.ce.Surface.js +++ b/modules/ve2/ce/ve.ce.Surface.js @@ -16,6 +16,11 @@ ve.ce.Surface = function( $container, model ) { // Initialization this.$.append( this.documentView.documentNode.$ ); + + try { + document.execCommand( "enableObjectResizing", false, false ); + document.execCommand( "enableInlineTableEditing", false, false ); + } catch (e) { } }; /* Inheritance */