8
0
Pārlūkot izejas kodu

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

Piotrek Koszuliński 8 gadi atpakaļ
vecāks
revīzija
121f3b8aff

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

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