jordandelozier / wysibb

WYSIWYG BBcode editor
http://www.wysibb.com
246 stars 86 forks source link

Destroying WysiBB Issues #148

Closed KnightYoshi closed 3 months ago

KnightYoshi commented 8 years ago

When destroying the editor it doesn't populate the editor with the text either before it was created or at the time the editor is destroyed.

Also when the editor is destroyed the text inside the textarea is injected as HTML before/after the textarea when it's clicked.

This can be seen on the demo pages on the WysiBB site. In the browser console when on the WysiBB site run $("#preview-editor-area").wysibb().destroy() (or any page that has an instance of the editor, just replace the ID with the textarea ID).