jhollingworth / bootstrap-wysihtml5

Simple, beautiful wysiwyg editor
http://jhollingworth.github.com/bootstrap-wysihtml5/
MIT License
4.14k stars 1.01k forks source link

HTML content removed if no other content present in editor #316

Open ghost opened 10 years ago

ghost commented 10 years ago

My tag config:

tags: { "h1": {}, "h2": {}, "p": {}, "br": {}, "strong": {}, "em": {} }

If I set editor value to

to editor P tags will be removed when editor will lose focus or when I change to WYSIWYG mode. But if I add

abc

P tags will NOT be removed.