tiff / wysihtml5

Open source rich text editor based on HTML5 and the progressive-enhancement approach. Uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.
http://xing.github.com/wysihtml5/
MIT License
6.49k stars 995 forks source link

Bold, Italic, Underline creates <br> #541

Open Myridor opened 9 years ago

Myridor commented 9 years ago

Everytime I click on Bold Italic or Underline it adds an
to the end of my text.

So the html looks like this if I click on Bold and Italic:

< p>Some of my Text< /p> < br> < br>

ghost commented 6 years ago

Same here, but worser. If I create a bold tag with one line break, then the result is this: <b>bold text<br><br></b> but when I delete all line breaks in editor (I find only one), then one
will stay in text and cannot be removed: <b>bold text<br></b> In editor is no line break anyway