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.
Learn more
Specifications
- HTML (#attr-contenteditable-plaintextonly-state), from HTML Workstream (WHATWG).
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
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist