Thatβs cool that you showcased this often forgotten attribute. Iβm actually quite familiar with contentenditable as I worked on a project that utilized it to create a transcript editor. When you couple it with Javascript, itβs actually pretty powerful.
Yea thatβs the general gist. We used contenteditable to allow them to make revisions and extract the content with textContent. Behind the scenes we do a bunch of validation and all that good stuff. The final product ended up being fairly robust. But I am biased since I worked on it π
I personally wouldn't recommend this option for many adventures, BUT it can be useful to make something like a visual character tester!
So imagine you have an email or website and content creators are able to write content, you tell them, keep lines at 250 chars.
It would be cooler if they can just see how it would actually look right. In this case contenteditable is a good option.
If they actually need a wysywg editor not, if they need to save the data, not.
It's a thin line, but there are some good use-cases for it.
Alyssa Holland
Programming. Productivity. Positivity
Thatβs cool that you showcased this often forgotten attribute. Iβm actually quite familiar with contentenditable as I worked on a project that utilized it to create a transcript editor. When you couple it with Javascript, itβs actually pretty powerful.