cr1zz cr1zz - 2 years ago 428
jQuery Question

jQuery Summernote - Get text back into editor

I got problems getting text back into the summernote editor.

I alrdy tried (but did not work):

$("#EDITsummernote").innerHtml = 'test';

How to do that?

Thank you in advance.

Answer Source

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

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


After v0.7.0, direct jquery methods, destroy and code were removed for avoiding conflict with other jquery libraries.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download