0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Remove Firefox's native table controls.

This commit is contained in:
Neil Jenkins 2014-05-20 13:55:11 +10:00
parent 85c458b2d2
commit f9cb71a666
3 changed files with 14 additions and 2 deletions

View file

@ -1203,6 +1203,12 @@ function Squire ( doc ) {
body.setAttribute( 'contenteditable', 'true' );
this.setHTML( '' );
// Remove Firefox's built-in controls
try {
doc.execCommand( 'enableObjectResizing', false, 'false' );
doc.execCommand( 'enableInlineTableEditing', false, 'false' );
} catch ( error ) {}
}
var proto = Squire.prototype;

File diff suppressed because one or more lines are too long

View file

@ -141,6 +141,12 @@ function Squire ( doc ) {
body.setAttribute( 'contenteditable', 'true' );
this.setHTML( '' );
// Remove Firefox's built-in controls
try {
doc.execCommand( 'enableObjectResizing', false, 'false' );
doc.execCommand( 'enableInlineTableEditing', false, 'false' );
} catch ( error ) {}
}
var proto = Squire.prototype;