Fix contenteditable attribute evaluation
This commit is contained in:
parent
00b416f8cb
commit
e2cb4b95e3
@ -364,7 +364,12 @@ class BesService {
|
|||||||
* @returns true if editable; false otherwise
|
* @returns true if editable; false otherwise
|
||||||
*/
|
*/
|
||||||
isContentEditable() {
|
isContentEditable() {
|
||||||
return this.hostElement.contentEditable !== 'false'
|
switch (this.hostElement.contentEditable) {
|
||||||
|
case 'true':
|
||||||
|
case 'plaintext-only':
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user