TIL how to turn anything into a editable text
POSTED ON:
TAGS: html
So you'd use a input
or textarea
field to create a space for the end user to add new content.
Did you know you can also do with that almost any element?
<p contenteditable="true" spellcheck="true">
Hey now, you're an allstar!
</p>
You can even add a spellcheck feature on it!
See the Pen Untitled by rockykev (@rockykev) on CodePen.
REF:
mdn - contenteditable
mdn - spellcheck
Related TILs
Tagged: html