Open rinfex-holfer opened 8 years ago
It seems like <br> in h1/h2/h3 etc. tags makes document.execCommand('formatBlock', false, 'p') function work not the way it have to.
<br>
document.execCommand('formatBlock', false, 'p')
Way to reproduce bug at the demo-page:
<p>
<h2>Hello, World!<br>Hello, World!<br>Hello, World!</h2>
Confirmed 😞 , works if the whole h2 is selected so has a workaround.
It seems like
<br>
in h1/h2/h3 etc. tags makesdocument.execCommand('formatBlock', false, 'p')
function work not the way it have to.Way to reproduce bug at the demo-page:
<p>
-paragraphs<h2>Hello, World!<br>Hello, World!<br>Hello, World!</h2>
<br>
and try to click h2-button again to remove h2 tag. It will not work.<br>
and try to click h2, at first it will remove<br>
-tag and after another click it will acts like it have to.