I have a \'template\' selector, that enables people to change the \'text/html\' of the current textarea.
So when they change templates, I need to update the Summernote H
According to the api (https://summernote.org/getting-started/#get--set-code),
to change wysiwyg's value you should use summernote function with 'code' string as first parameter and your content as second one
Like this :
$('.dialogMessageArea').summernote('code', data.results[0].template);