parent
ccc81312a1
commit
a57cdbd5b5
3 changed files with 18 additions and 6 deletions
@ -0,0 +1,8 @@ |
|||||||
|
const isContentEditable = (element) => { |
||||||
|
return element.hasAttribute('contenteditable') && ( |
||||||
|
element.getAttribute('contenteditable').toLowerCase() === 'true' || |
||||||
|
element.getAttribute('contenteditable').toLowerCase() === '' |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export { isContentEditable }; |
Reference in new issue