javascripthtmlsummernote

how to render html in summernote?


I get html code from summernote like this :

<p>Test</p><img style="width: 640px;" src="data:image/jpeg;base64.....>

Now I want to render it back to summernote in order to edit the content. However $(“summernote”).code(html) cannot show images while text is rendered. How can I render images in summernote?


Solution

  • I have solved this problem by using pasteHTML parameter. Hope it will help those who have the same problem.