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

Requested changes during the review.

Kamil Piechaczek 5 лет назад
Родитель
Сommit
06dad0526f

+ 2 - 2
packages/ckeditor5-typing/src/utils/injecttypingmutationshandling.js

@@ -105,9 +105,9 @@ class MutationHandler {
 
 		// Create fresh DomConverter so it will not use existing mapping and convert current DOM to model.
 		// This wouldn't be needed if DomConverter would allow to create fresh view without checking any mappings.
-		const freshDomConverter = new DomConverter();
+		const freshDomConverter = new DomConverter( this.editor.editing.view.document );
 		const modelFromCurrentDom = this.editor.data.toModel(
-			freshDomConverter.domToView( this.editing.view.document, domMutationCommonAncestor )
+			freshDomConverter.domToView( domMutationCommonAncestor )
 		).getChild( 0 );
 
 		// Current model.