浏览代码

Merge branch 'stable'

Piotrek Koszuliński 6 年之前
父节点
当前提交
a4807160af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/framework/guides/tutorials/implementing-a-block-widget.md

+ 1 - 1
docs/framework/guides/tutorials/implementing-a-block-widget.md

@@ -757,7 +757,7 @@ export default class InsertSimpleBoxCommand extends Command {
 	refresh() {
 		const model = this.editor.model;
 		const selection = model.document.selection;
-		const allowedIn = model.schema.findAllowedParent( 'simpleBox', selection.getFirstPosition() );
+		const allowedIn = model.schema.findAllowedParent( selection.getFirstPosition(), 'simpleBox' );
 
 		this.isEnabled = allowedIn !== null;
 	}