Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Requested changes during the review.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Feb 24, 2020
1 parent be1ea7e commit 8b6b4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/injecttypingmutationshandling.js
Expand Up @@ -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.
Expand Down

0 comments on commit 8b6b4be

Please sign in to comment.