瀏覽代碼

Update src/inlineautoformatediting.js

Co-Authored-By: Szymon Cofalik <s.cofalik@cksource.com>
Maciej 6 年之前
父節點
當前提交
fa45482be3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-autoformat/src/inlineautoformatediting.js

+ 1 - 1
packages/ckeditor5-autoformat/src/inlineautoformatediting.js

@@ -177,7 +177,7 @@ export default class InlineAutoformatEditing {
 			const { text, range } = getLastTextLine( model.createRange( model.createPositionAt( block, 0 ), focus ), model );
 			const testOutput = testCallback( text );
 			const rangesToFormat = testOutputToRanges( range.start, testOutput.format, editor.model );
-			const rangesToRemove = testOutputToRanges( range.start, testOutput.remove, editor.model );
+			const rangesToRemove = testOutputToRanges( range.start, testOutput.remove, model );
 
 			if ( !( rangesToFormat.length && rangesToRemove.length ) ) {
 				return;