mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fix pasting styles on text elements (#833)
This commit is contained in:
parent
2ad0716f3d
commit
2131befd7a
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ export const actionPasteStyles: Action = {
|
||||||
roughness: pastedElement?.roughness,
|
roughness: pastedElement?.roughness,
|
||||||
};
|
};
|
||||||
if (isTextElement(newElement)) {
|
if (isTextElement(newElement)) {
|
||||||
newElement.font = pastedElement?.font;
|
newElement.font = pastedElement?.font || "20px Virgil";
|
||||||
redrawTextBoundingBox(newElement);
|
redrawTextBoundingBox(newElement);
|
||||||
}
|
}
|
||||||
return newElement;
|
return newElement;
|
||||||
|
|
Loading…
Add table
Reference in a new issue