Skip to content

Commit

Permalink
fix #809
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jul 21, 2016
1 parent 67a59ed commit 0e79858
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@ class Quill {
delta = new Delta(delta.slice());
}
let change = this.editor.applyDelta(delta, source);
range = shiftRange(range, change, source);
this.setSelection(range, Emitter.sources.SILENT);
if (range != null) {
range = shiftRange(range, change, source);
this.setSelection(range, Emitter.sources.SILENT);
}
return change;
}
}
Expand Down

0 comments on commit 0e79858

Please sign in to comment.