Skip to content

Commit

Permalink
fix #655
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 10, 2016
1 parent 9466795 commit 99552b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blots/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Scroll extends Parchment.Scroll {
}

insertBefore(blot, ref) {
if (blot.scope === Parchment.Scope.INLINE_BLOT) {
if (blot.statics.scope === Parchment.Scope.INLINE_BLOT) {
let wrapper = Parchment.create(this.statics.defaultChild);
wrapper.appendChild(blot);
blot = wrapper;
Expand Down

0 comments on commit 99552b4

Please sign in to comment.