aboutsummaryrefslogtreecommitdiff
path: root/src/content/components/content-input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/components/content-input.js')
-rw-r--r--src/content/components/content-input.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/content/components/content-input.js b/src/content/components/content-input.js
index 0ba4bcb..3e70bbb 100644
--- a/src/content/components/content-input.js
+++ b/src/content/components/content-input.js
@@ -63,6 +63,10 @@ export default class ContentInputComponent {
fromInput(e) {
return e.target instanceof HTMLInputElement ||
e.target instanceof HTMLTextAreaElement ||
- e.target instanceof HTMLSelectElement;
+ e.target instanceof HTMLSelectElement ||
+ e.target instanceof HTMLElement &&
+ e.target.hasAttribute('contenteditable') && (
+ e.target.getAttribute('contenteditable').toLowerCase() === 'true' ||
+ e.target.getAttribute('contenteditable').toLowerCase() === '');
}
}