mindmup / bootstrap-wysiwyg

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

How to populate the editor div with formatted text? #221

Open paulgodard opened 6 years ago

paulgodard commented 6 years ago

I am struggling to get html formatted texct inside the editor (i.e. from database), then edit the text and save it back to the db. Any working example?

paulgodard commented 6 years ago

When there is a class or a style delimited with double quotes (i.e or or style="myStyle") which is preloaded in the editor div, then the generated html code has twice the double quotes or even misplaced when the tags are more complicated. Solution?