Fix contenteditable attribute evaluation

This commit is contained in:
Simon Rozman 2024-06-18 10:51:24 +02:00
parent 00b416f8cb
commit e2cb4b95e3

View File

@ -364,7 +364,12 @@ class BesService {
* @returns true if editable; false otherwise
*/
isContentEditable() {
return this.hostElement.contentEditable !== 'false'
switch (this.hostElement.contentEditable) {
case 'true':
case 'plaintext-only':
return true
}
return false
}
/**