contenteditable="plaintext-only"
Newly available since 2025-03-04
The contenteditable="plaintext-only"
global HTML attribute allows the user to edit the content of an element, but prevents rich-text formatting.
Learning resources on MDN
Browser support
- Chrome 51 Released on 2016-05-25
- Chrome Android 51 Released on 2016-06-08
- Edge ≤79 Released before 2020-01-15
- Firefox 136 Released on 2025-03-04
- Firefox for Android 136 Released on 2025-03-04
- Safari ≤13.1 Released before 2020-03-24
- Safari on iOS ≤13.4 Released before 2020-03-24
Specifications
- HTML (#attr-contenteditable-plaintextonly-state), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature