Skip to content

Commit

Permalink
Update contenteditable to define plaintext-only state (mdn#21875)
Browse files Browse the repository at this point in the history
* Update contenteditable to define plaintext-only state

* Update files/en-us/web/api/htmlelement/contenteditable/index.md

---------

Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <vinyldarkscratch@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Florian Scholz <fs@florianscholz.com>
  • Loading branch information
4 people authored and behnammodi committed Jun 26, 2023
1 parent a282a3a commit 1637d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/en-us/web/api/htmlelement/contenteditable/index.md
Expand Up @@ -16,6 +16,7 @@ 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.
- '`inherit`' indicates that the element inherits its parent's editable
status.

Expand Down
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

0 comments on commit 1637d09

Please sign in to comment.