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
feat: add trigger in the if condition for share cursor use (#1431)
Ran Luoc781f22d34d2
diff --git a/packages/docs/src/commands/mutations/core-editing.mutation.ts b/packages/docs/src/commands/mutations/core-editing.mutation.tsindex 3490792bf5..1ece893abf 100644--- a/packages/docs/src/commands/mutations/core-editing.mutation.ts+++ b/packages/docs/src/commands/mutations/core-editing.mutation.ts@@ -97,7 +97,7 @@ export const RichTextEditingMutation: IMutation<IRichTextEditingMutationParams,// Step 3: Update cursor & selection.// Make sure update cursor & selection after doc skeleton is calculated.- if (!noNeedSetTextRange && textRanges) {+ if (!noNeedSetTextRange && textRanges && trigger != null) {queueMicrotask(() => {textSelectionManagerService.replaceTextRanges(textRanges);});