Kaynağa Gözat

Docs: Fixed invalid method name. Closes #1620.

Kamil Piechaczek 6 yıl önce
ebeveyn
işleme
d9cb677be6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;
 	 *			}