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

Commit

Permalink
Merge 63adf00 into 00fbf7f
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Jul 27, 2018
2 parents 00fbf7f + 63adf00 commit 8ba3001
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/model/operation/wrapoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ export default class WrapOperation extends Operation {
const targetPosition = new Position( this.position.root, targetPath );

if ( this.element ) {
_insert( insertPosition, this.element._clone() );
const originalElement = this.element;
this.element = this.element._clone();

_insert( insertPosition, originalElement );
} else {
_move( Range.createFromPositionAndShift( this.graveyardPosition, 1 ), insertPosition );
}
Expand Down

0 comments on commit 8ba3001

Please sign in to comment.