wdmg / bootstrap-wysiwyg

WYSIWYG editor plugin for Bootstrap framework
MIT License
17 stars 6 forks source link

Destroy and re-initiate? #1

Open Yohn opened 3 years ago

Yohn commented 3 years ago

Hello! I gotta say, this plugin is awesome!! I'm so glad I found it! I havent ran into any issues until today with 1 of my forms. I may know a work around for it, but I was wondering if there's a way to destroy the instance of the wysiwyg?

I have a form on a page to create a new product and I'm using that same form to edit product information. When the employee clicks "edit" I make an ajax call to find the description and auto populate the textarea box, which is the wysiwyg editor, but the auto populate doesnt update the editor window. So if there is a way to destroy and then re-initiate the plugin I could fix this, but I did not see destroy in the source code.

I'm going to try to see if I can auto populate the wysiwyg editor window instead of the original textarea form, but figured I would let you know here in case there may be an easier way.

Anyways, thanks soo much for this plug! Its truely a life saver!

alex-wdmg commented 3 years ago

Thank you very much for your appreciation. Yes, I think a self-destruction method will be added in the next release.