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

Update contenteditable to define plaintext-only state #21875

Merged
merged 7 commits into from
Jun 20, 2023
2 changes: 2 additions & 0 deletions files/en-us/web/api/htmlelement/contenteditable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This enumerated attribute can have the following values:

- '`true`' indicates that the element is `contenteditable`.
- '`false`' indicates that the element cannot be edited.
- '`plaintext-only`' indicates that the element's raw text is editable,
but rich text formatting is disabled.
Josh-Cena marked this conversation as resolved.
Show resolved Hide resolved
- '`inherit`' indicates that the element inherits its parent's editable
status.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The attribute must take one of the following values:

- `true` or an _empty string_, which indicates that the element is editable.
- `false`, which indicates that the element is not editable.
- `plaintext-only`, which indicates that the element's raw text is editable, but rich text formatting is disabled.

If the attribute is given without a value, like `<label contenteditable>Example Label</label>`, its value is treated as an empty string.

Expand Down