Skip to content

Commit

Permalink
use official summernote api
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed Nov 16, 2017
1 parent fe190a5 commit dba1fcf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/jsoneditor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jsoneditor.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/jsoneditor.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/editors/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
this.sceditor_instance.val(sanitized);
}
else if(this.summernote_instance) {
this.summernote_instance.code(sanitized);
this.summernote_instance.summernote('code', sanitized);
}
else if(this.epiceditor) {
this.epiceditor.importFile(null,sanitized);
Expand Down Expand Up @@ -409,7 +409,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
this.sceditor_instance.destroy();
}
else if (this.summernote_instance) {
this.summernote_instance.destroy();
this.summernote_instance.summernote('destroy');
}
else if(this.epiceditor) {
this.epiceditor.unload();
Expand Down

0 comments on commit dba1fcf

Please sign in to comment.