Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect contenteditable elements #580

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nuxodin
Copy link

@nuxodin nuxodin commented May 25, 2022

An element can have the contenteditable value "true" but also "" (emty string) or to be editable.
See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable

But anyway, an easier way to see if it's a contenteditable-root element is to use the property node.contentEditable, which has wide support.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable

An element can have the `contenteditable` value "true" but also "" (emty string) or to be editable.
See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable

But anyway, an easier way to see if it's a contenteditable-root element is to use the property `node.contentEditable`, which has wide support.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable
@nuxodin
Copy link
Author

nuxodin commented Feb 15, 2023

Is this script still maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant