jQuery Summernote - Get text back into editor

jquery

Solution

Since v0.7.0 `code()` has been deprecated and removed (same story for `destroy()` method).

You must use `$(".summernote").summernote("code", "your text");`

Reference: https://summernote.org/getting-started/#get--set-code

After v0.7.0, direct jquery methods, `destroy` and `code` were removed for avoiding conflict with other jquery libraries. You can call this methods with summernote api.

Problem

I got problems getting text back into the summernote editor. I already tried (but did not work): ``` $("#EDITsummernote").innerHtml = 'test'; ``` How to do that?

Original source