소스 검색

Align code to the latest changes in engine API.

Maciej Gołaszewski 6 년 전
부모
커밋
422b374144
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/ckeditor5-block-quote/src/blockquotecommand.js

+ 2 - 2
packages/ckeditor5-block-quote/src/blockquotecommand.js

@@ -48,7 +48,7 @@ export default class BlockQuoteCommand extends Command {
 		const schema = model.schema;
 		const selection = model.document.selection;
 
-		const blocks = Array.from( selection.getTopMostBlocks() );
+		const blocks = Array.from( selection.getSelectedBlocks() );
 
 		const value = ( options.forceValue === undefined ) ? !this.value : options.forceValue;
 
@@ -76,7 +76,7 @@ export default class BlockQuoteCommand extends Command {
 	_getValue() {
 		const selection = this.editor.model.document.selection;
 
-		const firstBlock = first( selection.getTopMostBlocks() );
+		const firstBlock = first( selection.getSelectedBlocks() );
 
 		// In the current implementation, the block quote must be an immediate parent of a block element.
 		return !!( firstBlock && findQuote( firstBlock ) );