Skip to content

Commit

Permalink
fix #1197
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Dec 21, 2016
1 parent 28458a5 commit d80ea21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Selection {
}

format(format, value) {
if (this.scroll.whitelist != null && !this.scroll.whitelist[format]) return;
this.scroll.update();
let nativeRange = this.getNativeRange();
if (nativeRange == null || !nativeRange.native.collapsed || Parchment.query(format, Parchment.Scope.BLOCK)) return;
Expand Down

0 comments on commit d80ea21

Please sign in to comment.