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
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.Browser support
- Chrome 51 Released on 2016-05-25
- Chrome Android 51 Released on 2016-06-08
- Edge 12 Released on 2015-07-29
- 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