You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown in the screenshot below, I changed the font size of the paragraph, when using patchDocument, the replaced content does not use the font and style of the key but uses the default font instead. How can I set it so that the replaced content has the same style as the key? Thank you.
The text was updated successfully, but these errors were encountered:
There were scenarios in which patching a document would result in loss
of style for the template runs and, possibly, their right-adjacent run
as well (post-splitting). That was due to the run style elements not
being added to the newly created runs.
This commit addresses this issue by introducing a new, optional, flag
for the `patchDocument` function: `keepOriginalStyles`. It defaults to
`false` (current behavior) and, when `true`, ensures that there is no
loss of styling.
This should address dolanmiu#2293.
As shown in the screenshot below, I changed the font size of the paragraph, when using patchDocument, the replaced content does not use the font and style of the key but uses the default font instead. How can I set it so that the replaced content has the same style as the key? Thank you.
The text was updated successfully, but these errors were encountered: