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

Couldn't find pluginBase.js, plugin does not register. #145

Closed dmziryanov closed 3 years ago

dmziryanov commented 3 years ago

Hello, where can I find a pluginBase.js file?

I could not register any plugin from the folder and think that is caused by absence of pluginBase.js.

ShockwaveNN commented 3 years ago

Hi, could you describe your problem in more details? Which plugin you're trying to register?

dmziryanov commented 3 years ago

helloworld plugin. I found (at R7-Office\Editors\editors\sdkjs-plugins) and add reference to pluginBase.js in index.html I packed plugin folder to zip archive and rename to *.plugin after adding plugin nothing happens.

ShockwaveNN commented 3 years ago

Could you attach your result plugin file?

dmziryanov commented 3 years ago

https://drive.google.com/file/d/11CvP_7-AjwqeS-PMYlRvNDqxEuKDpNNl/view?usp=sharing

ShockwaveNN commented 3 years ago

image

All files should be at root of archive, not in helloworld subfolder

dmziryanov commented 3 years ago

Ok, thank you. Plugin appeared at the end of plugins list, image

but doesn't appear in the toolbox: image

and I don't know how to execute it

ShockwaveNN commented 3 years ago

Please attach resulting plugin

ShockwaveNN commented 3 years ago

Also please note, if you want helloworld plugin, you should pack this one https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/helloworld

I found (at R7-Office\Editors\editors\sdkjs-plugins) and add reference to pluginBase.js in index.html

Because I've no idea what it is

dmziryanov commented 3 years ago

https://drive.google.com/file/d/1qosaISy6eREcL-83qWX355274WaCFQFi/view?usp=sharing

I suppose pluginBase.js is the base file for plugin and it is located in the root folder with plugin GUID-named folders. also I noticed that this plugin guid ( "guid" : "asc.{0616AE85-5DBE-4B6B-A0A9-455C4F1503AD}",) from config json doesn't appear there

ShockwaveNN commented 3 years ago

@dmziryanov I've checked your second file right now and it's work fine in ONLYOFFICE DesktopEditors 6.1.0.90 on Kubunut 20.04 image

So, could you describe your product version and OS

dmziryanov commented 3 years ago

image

  1. Windows 10
  2. Debian 10
ShockwaveNN commented 3 years ago

Could you try to use same plugin with ONLYOFFICE DesktopEditors? Sorry, but r7 office is separate product and not supported in this repo.

dmziryanov commented 3 years ago

ok, i finally worked it out. I tried it in cells, not in docs. In docs hello world works fine

dmziryanov commented 3 years ago

Could you try to use same plugin with ONLYOFFICE DesktopEditors? Sorry, but r7 office is separate product and not supported in this repo.

I supposed this is the same product

ShockwaveNN commented 3 years ago

No, those are separate products, I'm gladly help with any issues in ONLYOFFICE, but any problems with r7 should be handled by it's support

I'm close this issue since seems your issue is resolved