How can I destroy a summernote?

0

I have a modal where I launch a Summernote, however I want that when leaving the modal the Summernote is destroyed since the following can happen:

And if I remove the content with $ ("# descriptionA"). code (""); it does not remove the text, it is only removed if I reload the page.

    
asked by Bernardo Ramirez 16.11.2017 в 01:42
source

1 answer

2

You can add instead of:

 $("#descripcionA").code("");

This:

$("#descripcionA").summernote('destroy');

When closing your modal.

    
answered by 16.11.2017 / 17:52
source