Open vese opened 3 years ago
@askonev Please take a look
It is possible to get selected value if specify "initOnSelectionChanged": true and "initDataType": "text" or "initDataType": "html" in config.json. But it seems like workaround instead of an actual way to get value. Also it is impossible to get selected cells adresses this way because init data has no this information
Hello @vese. This is exactly how the implementation of data access from the editor to the plugin was conceived. I think you have already familiarized yourself with the implementation of the Thesaurus plugin in which this configuration is used.
But direct access to the cell address is not implemented, but you can add it to the cell using Api methods and then take the data into the plugin.
Hello @askonev. Is it possible to add parameters to callbacks from callCommand https://github.com/ONLYOFFICE/sdkjs/pull/1964 ?
Hi! I need to parse value from cell and display it in plugin's window. How can I do this?
If use onCommandCallback I also can't get the value
}
If use executeMethod I get returnValue in onMethodReturn for some methods, e. g. GetFontList
But I can't get cell value. ('GetActiveSheet', 'GetActiveCell') Is there any method to get cell value?