contenteditable="plaintext-only"
Limited availability
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 ❌
- Firefox for Android ❌
- Safari ≤13.1 Released before 2020-03-24
- Safari on iOS ≤13.4 Released before 2020-03-24
Baseline availability blocked since March 2020 by Firefox (59 months)
Specifications
- HTML (#attr-contenteditable-plaintextonly-state), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature