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: word segmentation in list (#691)
Ran Luo679cdd0a38b7
diff --git a/packages/engine-render/src/components/docs/text-selection-render-manager.ts b/packages/engine-render/src/components/docs/text-selection-render-manager.tsindex 25670bb1e1..a41e2197b8 100644--- a/packages/engine-render/src/components/docs/text-selection-render-manager.ts+++ b/packages/engine-render/src/components/docs/text-selection-render-manager.ts@@ -6,7 +6,7 @@ import { BehaviorSubject } from 'rxjs';import { CURSOR_TYPE } from '../../basics/const';import type { IDocumentSkeletonSpan } from '../../basics/i-document-skeleton-cached';-import { PageLayoutType } from '../../basics/i-document-skeleton-cached';+import { PageLayoutType, SpanType } from '../../basics/i-document-skeleton-cached';import type { IMouseEvent, IPointerEvent } from '../../basics/i-events';import type { INodeInfo, INodePosition } from '../../basics/interfaces';import { getOffsetRectForDom, transformBoundingCoord } from '../../basics/position';@@ -66,6 +66,10 @@ function getParagraphInfoBySpan(node: IDocumentSkeletonSpan) {hasFound = true;}+ if (span.spanType === SpanType.LIST) {+ continue;+ }+content += span.content;}}