소스 검색

Passed the direction of the DeleteCommand to the Model#deleteContent() execution.

Aleksander Nowodzinski 6 년 전
부모
커밋
857cb45efd
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      packages/ckeditor5-typing/src/deletecommand.js

+ 5 - 1
packages/ckeditor5-typing/src/deletecommand.js

@@ -110,7 +110,11 @@ export default class DeleteCommand extends Command {
 				);
 			} );
 
-			model.deleteContent( selection, { doNotResetEntireContent } );
+			model.deleteContent( selection, {
+				doNotResetEntireContent,
+				direction: this.direction
+			} );
+
 			this._buffer.input( changeCount );
 
 			writer.setSelection( selection );