Web platform features explorer

contenteditable="plaintext-only"

Newly available since 2025-03-04
Tags: api html

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