Skip to content

Commit dba1fcf

Browse files
committed
use official summernote api
1 parent fe190a5 commit dba1fcf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dist/jsoneditor.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/editors/string.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
3636
this.sceditor_instance.val(sanitized);
3737
}
3838
else if(this.summernote_instance) {
39-
this.summernote_instance.code(sanitized);
39+
this.summernote_instance.summernote('code', sanitized);
4040
}
4141
else if(this.epiceditor) {
4242
this.epiceditor.importFile(null,sanitized);
@@ -409,7 +409,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
409409
this.sceditor_instance.destroy();
410410
}
411411
else if (this.summernote_instance) {
412-
this.summernote_instance.destroy();
412+
this.summernote_instance.summernote('destroy');
413413
}
414414
else if(this.epiceditor) {
415415
this.epiceditor.unload();

0 commit comments

Comments
 (0)