mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Remove obsolete execCommand calls
Firefox removed the need for this in v64. Resolves #439.
This commit is contained in:
parent
fc38e8affb
commit
e324748f0f
1 changed files with 0 additions and 6 deletions
|
@ -182,12 +182,6 @@ class Squire {
|
||||||
// Make it editable
|
// Make it editable
|
||||||
root.setAttribute('contenteditable', 'true');
|
root.setAttribute('contenteditable', 'true');
|
||||||
|
|
||||||
// Remove Firefox's built-in controls
|
|
||||||
try {
|
|
||||||
document.execCommand('enableObjectResizing', false, 'false');
|
|
||||||
document.execCommand('enableInlineTableEditing', false, 'false');
|
|
||||||
} catch (_) {}
|
|
||||||
|
|
||||||
// Modern browsers let you override their default content editable
|
// Modern browsers let you override their default content editable
|
||||||
// handling!
|
// handling!
|
||||||
this.addEventListener(
|
this.addEventListener(
|
||||||
|
|
Loading…
Reference in a new issue