SummerNote insertHtml

前端 未结 5 2011
攒了一身酷
攒了一身酷 2021-02-19 07:43

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

5条回答
  •  借酒劲吻你
    2021-02-19 08:36

    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);
    

提交回复
热议问题