You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding some text, then backspacing all the way, the placeholder does not restore. And when saving, the content that persists is a single <br> tag.
I think it's because the elseif on this line is commented out.
Placing if (content.innerHTML === '<br>') content.innerHTML = ''; on its own line below seems to solve the problem. Not sure if there are any adverse side-effects.
The text was updated successfully, but these errors were encountered:
When adding some text, then backspacing all the way, the placeholder does not restore. And when saving, the content that persists is a single
<br>
tag.I think it's because the
elseif
on this line is commented out.Placing
if (content.innerHTML === '<br>') content.innerHTML = '';
on its own line below seems to solve the problem. Not sure if there are any adverse side-effects.The text was updated successfully, but these errors were encountered: