浏览代码

Improved checking the instance of changed element.

Maksymilian Barnaś 9 年之前
父节点
当前提交
684bd5139d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/ckeditor5-autoformat/src/autoformatengine.js

+ 2 - 1
packages/ckeditor5-autoformat/src/autoformatengine.js

@@ -4,6 +4,7 @@
  */
 
 import Range from '../engine/model/range.js';
+import TextProxy from '../engine/model/textproxy.js';
 
 export default class AutoformatEngine {
 	/**
@@ -36,7 +37,7 @@ export default class AutoformatEngine {
 			}
 
 			for ( let value of changes.range.getItems() ) {
-				if ( !value.textNode ) {
+				if ( !( value instanceof TextProxy ) ) {
 					return;
 				}