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

how to get the data of DocAPI.editorConfig? #42

Closed zopxy closed 5 years ago

zopxy commented 5 years ago

how to get the data of DocAPI.editorConfig from customer plugin. eg: username or userid

flaminestone commented 5 years ago

Hello @bopro. At now, you can not to get username or userid from plugins. We make this feature in future releases, but it is not high priority task, and we do not know, when it will be released. Bug in our private bugtracker 40044

zopxy commented 5 years ago

thanks @flaminestone If only office server and the current website are in the same domain

It should be available from localStorage?

flaminestone commented 5 years ago

@bopro It not available from localStorage

K0R0L commented 5 years ago

It will be fixed in next release. See commit cd6f6d05c7c62c88a267c912cc4bbd586e5ea87d.

lokesh-soni commented 5 years ago

@K0R0L We are looking for a way to transfer data from the JS(which is used to call docEditor) to the plugin when initiated by user and we are trying to do it via DocAPI.someVariableNameInsideConfig. So could you please let me know about the status of the said bug. Is it fixed or not because it is very vital for our editor plugin and our application.