I am trying to get innerHTML
of contenteditable
field, and relying on that decide save it or not.
I have markup like this
<div class="users-overlay" contenteditable></div>
so when I am using document.querySelector('.users-overlay').innerHTML
it returns <br>
. This behaviour appears only on IE/Edge. I need to get rid of this somehow. Because even when I write document.querySelector('.users-overlay').innerHTML = ''
it is still here. Thanks in advance.
" from the content if there is one at the begining of it? – LordNeo Nov 20 '19 at 16:01
`. I looked into it a bit and found [this](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6492250/) edge bug report that sounds similiar. – Marie Nov 20 '19 at 20:15