8
0
Просмотр исходного кода

Improved checking the instance of changed element.

Maksymilian Barnaś 9 лет назад
Родитель
Сommit
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;
 				}