0
Fork 0
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:
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 // 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(