Skip to content

Commit

Permalink
Content Model: Improve insertEntity (#2047)
Browse files Browse the repository at this point in the history
* Content Model: Improve insertEntity

* fix test
  • Loading branch information
JiuqingSong authored Sep 5, 2023
1 parent 0439b5a commit 4f5bd68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function insertEntity(
entityModel,
typeof position == 'string' ? position : 'focus',
isBlock,
isBlock ? focusAfterEntity : true,
focusAfterEntity,
context
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('insertEntity', () => {
},
'begin',
false,
true,
undefined,
context
);
expect(getEntityFromElementSpy).toHaveBeenCalledWith(wrapper);
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('insertEntity', () => {
},
'begin',
false,
true,
undefined,
context
);
expect(getEntityFromElementSpy).toHaveBeenCalledWith(wrapper);
Expand Down

0 comments on commit 4f5bd68

Please sign in to comment.