Input event on contenteditable element

29/03/2020

On an input event from a input element you would use event.target.value to get the value.

But if it's a normal HTML elemenent with the contenteditable attribute that doesn't work. Instead you can use event.target.textContent.