0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-21 23:03:11 -05:00

Remove obsolete execCommand calls

Firefox removed the need for this in v64.

Resolves #439.
This commit is contained in:
Neil Jenkins 2023-10-02 12:41:55 +11:00
parent fc38e8affb
commit e324748f0f

View file

@ -182,12 +182,6 @@ class Squire {
// Make it editable
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
// handling!
this.addEventListener(