mindmup / bootstrap-wysiwyg

Tiny bootstrap-compatible WISWYG rich text editor
MIT License
5.56k stars 841 forks source link

How to prevent putting 'div' tags #206

Open eskimetalci opened 8 years ago

eskimetalci commented 8 years ago

Hi, i'M using the wysiwyg, due to the client's complaints i realized the wysiwyg is enclosing the text with 'div' tags instead of putting
tag.

for example i just write:

text text

and i get

text< div>text2</ div>

instead of

text< br>text2

It's messing with the data, tags are becoming some html special chars etc and I keep seeing the data was replaced with strange mutated html special characters. How can we disable or change its behaviour to put
tag isnstead of div enclosing?

jbroudou commented 8 years ago

I'm noticing this as well, but it only occurs in Chrome and not Firefox. When I hit the enter key in chrome a div element is used instead of a br element. Is this something that this library is doing specifically for the Chrome browser or just an artifact of the browser itself?