Bugfix and improve Squire HTML/Plain modes

This commit is contained in:
djmaze 2021-08-16 18:09:54 +02:00
parent 5efbcf5ad3
commit 1c95eab6d6
4 changed files with 17 additions and 13 deletions

View file

@ -30,7 +30,7 @@ export function pString(value) {
export function inFocus() {
try {
return doc.activeElement && doc.activeElement.matches(
'input,textarea,.cke_editable'
'input,textarea,[contenteditable]'
);
} catch (e) {
return false;