Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(docs): show font family after copy from header (#3233)
Ran Luo480e9f1a29cc
diff --git a/packages/docs-ui/src/services/clipboard/html-to-udm/parse-node-style.ts b/packages/docs-ui/src/services/clipboard/html-to-udm/parse-node-style.tsindex 85a18b1c67..700af37874 100644--- a/packages/docs-ui/src/services/clipboard/html-to-udm/parse-node-style.ts+++ b/packages/docs-ui/src/services/clipboard/html-to-udm/parse-node-style.ts@@ -64,7 +64,7 @@ export function extractNodeStyle(node: HTMLElement): ITextStyle {switch (cssRule) {case 'font-family': {- docStyles.ff = cssValue;+ docStyles.ff = cssValue.replace(/^"/g, '').replace(/"$/g, '');break;}