瀏覽代碼

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

Piotrek Koszuliński 8 年之前
父節點
當前提交
121f3b8aff
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 ];
 
 					// Allow 'bold' on p>$text.
-					if ( ctx.matchEnd( 'p $text' ) && attributeName == 'bold' ) {
+					if ( ctx.endsWith( 'p $text' ) && attributeName == 'bold' ) {
 						evt.stop();
 						evt.return = true;
 					}