Input event on contenteditable element
29/03/2020
On an input event from an input element, you
would use
event.target.value
to get the value.
But if it's a normal HTML element with the
contenteditable
attribute, that doesn't work. Instead, you can
use
event.target.textContent.