executeCommand can't set-selections,how to use it?,how to get executeCommand function parameter? #2796
Unanswered
river666
asked this question in
Q&A | 常见问题
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
初始清单
问题
const univerAPI = FUniver.newAPI(univer); univerAPI.getSheetHooks().onCellDrop((cell) => { // 拿到当前鼠标指向的单元格 console.log(cell); let b = univerAPI.executeCommand('doc.operation.set-selections',{ "unitId": "__INTERNAL_EDITOR__DOCS_NORMAL", "subUnitId": "", "segmentId": "", "style": { "strokeWidth": 1.5, "stroke": "rgba(0, 0, 0, 0)", "strokeActive": "rgba(0, 0, 0, 1)", "fill": "rgba(179, 215, 255, 0.3)" }, "isEditing": true, "ranges": [ { "startOffset": 0, "endOffset": 0, "collapsed": true, "isActive": true } ] }) debugger })hope
now
no work
Beta Was this translation helpful? Give feedback.
All reactions