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:
parent
85c458b2d2
commit
f9cb71a666
3 changed files with 14 additions and 2 deletions
|
@ -1203,6 +1203,12 @@ function Squire ( doc ) {
|
||||||
|
|
||||||
body.setAttribute( 'contenteditable', 'true' );
|
body.setAttribute( 'contenteditable', 'true' );
|
||||||
this.setHTML( '' );
|
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;
|
var proto = Squire.prototype;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -141,6 +141,12 @@ function Squire ( doc ) {
|
||||||
|
|
||||||
body.setAttribute( 'contenteditable', 'true' );
|
body.setAttribute( 'contenteditable', 'true' );
|
||||||
this.setHTML( '' );
|
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;
|
var proto = Squire.prototype;
|
||||||
|
|
Loading…
Reference in a new issue