編集

contenteditable 属性の"plaintext-only"値が Baseline Newly に

ユーザーのプレーンテキストの入力を textarea 要素以外でサポートする際に利用できる contenteditable 属性の”plaintext-only”値が Baseline Newly で利用可能になりました。

https://web.dev/blog/contenteditable-plaintext-only-baseline?hl=en

Edit me! contenteditable="plaintext-only" demo.
Edit me! contenteditable="true" demo.

プレーンテキストとは、リッチテキストではないもの、文字の大きさや色、書式などの装飾がないテキストのことです。つまりplaintext-onlyでは、文字を張り付けた場合、textarea 要素と同様にテキストの装飾が引きはがされます。

編集