From d80ea21dbe6692a6d08ea96688db383a7e90f777 Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Tue, 20 Dec 2016 20:13:16 -0800 Subject: [PATCH] fix #1197 --- core/selection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/selection.js b/core/selection.js index edab226368..c937e7d612 100644 --- a/core/selection.js +++ b/core/selection.js @@ -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;