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

Plugins which use the document object don't work with the minified production code #3

Closed tsmgodoi closed 7 years ago

tsmgodoi commented 8 years ago

I've managed to run the plugins by replacing the folder /var/www/onlyoffice/documentserver/ inside the docker with the the original sources. Without it my plugin code cannot use some Document methods. I keep getting: oDocument.Document.Get_CurrentParagraph is not a function(…) It happens with this code:

var oDocument = Api.GetDocument(); var oCurrentParagraph = oDocument.Document.Get_CurrentParagraph();

Is this plugin mechanism production ready? I didn't see any documentation anywhere. Thanks.

K0R0L commented 8 years ago

Instructions will be released within a month.

trofim24 commented 7 years ago

WRITING THE PLUGIN CODE. PLUGIN EXAMPLE ONLYOFFICE Document Builder - this is how the plugins interact with the editors.