mirror of
https://github.com/dream-num/univer.git
synced 2026-08-29 07:13:59 +08:00
fix: increase/decrease font size with cell.P (#6274)
Co-authored-by: r.sergeev <r.sergeev@yadro.com>
This commit is contained in:
@@ -28,9 +28,11 @@ export function getFontStyleAtCursor(accessor: IAccessor) {
|
||||
if (editorDataModel == null || activeTextRange == null) return null;
|
||||
|
||||
const textRuns = editorDataModel.getBody()?.textRuns;
|
||||
|
||||
if (textRuns == null) return;
|
||||
|
||||
const { startOffset } = activeTextRange;
|
||||
const textRun = textRuns.find(({ st, ed }) => startOffset >= st && startOffset <= ed);
|
||||
const { startOffset, endOffset } = activeTextRange;
|
||||
const textRun = textRuns.find(({ st, ed }) => startOffset >= st && endOffset <= ed);
|
||||
|
||||
return textRun;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user