浏览代码

Docs: Fixed invalid method name. Closes #1620.

Kamil Piechaczek 6 年之前
父节点
当前提交
d9cb677be6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-engine/src/model/schema.js

+ 1 - 1
packages/ckeditor5-engine/src/model/schema.js

@@ -395,7 +395,7 @@ export default class Schema {
 	 * Example:
 	 *
 	 *		// Disallow bold on $text inside heading1.
-	 *		schema.addChildCheck( ( context, attributeName ) => {
+	 *		schema.addAttributeCheck( ( context, attributeName ) => {
 	 *			if ( context.endsWith( 'heading1 $text' ) && attributeName == 'bold' ) {
 	 *				return false;
 	 *			}