Browse Source

Sixth batch of changes aligning schema use to the new API.

Piotrek Koszuliński 8 years ago
parent
commit
121f3b8aff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-basic-styles/tests/attributecommand.js

+ 1 - 1
packages/ckeditor5-basic-styles/tests/attributecommand.js

@@ -38,7 +38,7 @@ describe( 'AttributeCommand', () => {
 					const attributeName = args[ 1 ];
 					const attributeName = args[ 1 ];
 
 
 					// Allow 'bold' on p>$text.
 					// Allow 'bold' on p>$text.
-					if ( ctx.matchEnd( 'p $text' ) && attributeName == 'bold' ) {
+					if ( ctx.endsWith( 'p $text' ) && attributeName == 'bold' ) {
 						evt.stop();
 						evt.stop();
 						evt.return = true;
 						evt.return = true;
 					}
 					}