mindmup / bootstrap-wysiwyg

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

'View HTML' button and .destroy() wisywyg ? #78

Closed beshur closed 11 years ago

beshur commented 11 years ago

Is there a way to disable wisywyg to show generated content and edit HTML? tnx

jordandh commented 11 years ago

There isn't a built in way to do this but it should be easy enough to do on your own. You can grab the current HTML content with $editor.html(). Then you can set the text content equal to that HTML with $editor.text(html). I haven't tried it but I think that will work.

beshur commented 11 years ago

Okay, thanks. Suppose should make some and commit here.