Skip to content

Commit

Permalink
set default source
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 21, 2016
1 parent 00b148b commit d1f084d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class Quill {
return this.selection.hasFocus();
}

insertEmbed(index, embed, value, source) {
insertEmbed(index, embed, value, source = Quill.sources.API) {
let range = this.getSelection();
let change = this.editor.insertEmbed(index, embed, value, source);
range = shiftRange(range, change, source);
Expand Down

0 comments on commit d1f084d

Please sign in to comment.