The contenteditable="plaintext-only" attribute/value combination is now widely available
SMRTR summary
The contenteditable="plaintext-only" attribute combination for HTML elements is now widely supported. This feature allows for dynamic resizing of text input areas without using <textarea> elements. It offers advantages like automatic resizing and compatibility with the CSS Custom Highlight API for text styling. Developers can use this attribute on generic elements like <div> to create more flexible and customizable plaintext input fields compared to traditional <textarea> elements.
SMRTR provides this summary for quick context. The original article belongs to Daily.dev.
Read the original article