Răsfoiți Sursa

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

Aleksander Nowodzinski 5 ani în urmă
părinte
comite
857cb45efd
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  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 );
 			this._buffer.input( changeCount );
 
 
 			writer.setSelection( selection );
 			writer.setSelection( selection );