mindmup / bootstrap-wysiwyg

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

how to change div to p tag #220

Open paulgodard opened 6 years ago

paulgodard commented 6 years ago

I am using the editor with Bootstrap and FontAwesome 4. Just a few changes from the example and it works great. When typing 2 lines of text separated by CR inside the editor the html output is: line one<div>line two</div> Is it possible to force the editor for a paragraph tag instead of a div tag and also tagging the first line so the output would be: <p>line one</p><p>line two</p> Of course, it is possible with JS but is there another way?