Skip to content

Commit

Permalink
MergeModel, do not inherit the styles of table when splitting the par…
Browse files Browse the repository at this point in the history
…am (#2016)

* init

* init

* address comment

* update test names
  • Loading branch information
BryanValverdeU authored Aug 9, 2023
1 parent 991fed1 commit 72f0c87
Show file tree
Hide file tree
Showing 2 changed files with 392 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ function splitParagraph(markerPosition: InsertPoint, newParaFormat: ContentModel

function insertBlock(markerPosition: InsertPoint, block: ContentModelBlock) {
const { path } = markerPosition;
const newPara = splitParagraph(markerPosition, block.format);
const newParaFormat = block.blockType !== 'Paragraph' ? {} : block.format;
const newPara = splitParagraph(markerPosition, newParaFormat);
const blockIndex = path[0].blocks.indexOf(newPara);

if (blockIndex >= 0) {
Expand Down
Loading

0 comments on commit 72f0c87

Please sign in to comment.