Sfoglia il codice sorgente

Improved checking the instance of changed element.

Maksymilian Barnaś 9 anni fa
parent
commit
684bd5139d
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 Range from '../engine/model/range.js';
+import TextProxy from '../engine/model/textproxy.js';
 
 
 export default class AutoformatEngine {
 export default class AutoformatEngine {
 	/**
 	/**
@@ -36,7 +37,7 @@ export default class AutoformatEngine {
 			}
 			}
 
 
 			for ( let value of changes.range.getItems() ) {
 			for ( let value of changes.range.getItems() ) {
-				if ( !value.textNode ) {
+				if ( !( value instanceof TextProxy ) ) {
 					return;
 					return;
 				}
 				}