ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

[feature]I hope to get the content and the coords of a selected cell range in plugins #87

Closed cnTailor closed 4 years ago

cnTailor commented 4 years ago

in the version 5.4

When I selected a range, then I open a plugin the plugin.init(text) is called, the param text just has the cell content, but no the coordinates of the range.

can we add a param in the plugin.init(text, range) , param range is a string like E9:G12, means the the left top corner coordinates and right bottom coordinates of cell range.

zopxy commented 4 years ago

window.parent.SSE.controllers.Main.api.asc_getDefaultDefinedName().Ref or window.parent.SSE.controllers.DocumentHolder.api.asc_getDefaultDefinedName().Ref

cnTailor commented 4 years ago

Thanks @bopro , I got it!