From df8a777551878f120c6d0dd3148d01c9ec7ad25b Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Thu, 24 Jan 2019 11:52:36 +0100 Subject: [PATCH] Docs: Fixed invalid method name. Closes #1620. --- src/model/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/schema.js b/src/model/schema.js index 1f2eb8ccd..194850d10 100644 --- a/src/model/schema.js +++ b/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; * }