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

OnlyOffice Desktop Editor add plugin dont working #152

Open 3s-ThanhLNP opened 3 years ago

3s-ThanhLNP commented 3 years ago

I downloaded the chess plugin and added it but nothing happened, even the plugin I wrote myself

At the same time display-capture causes an unbootable error with documentserver on chrome

ShockwaveNN commented 3 years ago

Could you attach plugin archive you've created?

3s-ThanhLNP commented 3 years ago

i try with https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/chess

ShockwaveNN commented 3 years ago

I think your archive structure is incorrect, so I should take a look at result plugin file

3s-ThanhLNP commented 3 years ago

chess.zip please check, thank you

ShockwaveNN commented 3 years ago

You got subfolder inside it

Compare your plugin on the left and correct structure on the right

image

3s-ThanhLNP commented 3 years ago

really sorry, i made a big mistake,

in documentserver I see .setAttribute(‘allow’, ‘display-capture’) causing an alert when I use chrome

ShockwaveNN commented 3 years ago

@3s-ThanhLNP Could you specify in more details are your problem solved? Because I don't quite get part about setAttribute

3s-ThanhLNP commented 3 years ago

I have tried again many times and I have started documentserver, ‘display-capture’ just causes warning in chrome but not error Thank you for your enthusiastic help

3s-ThanhLNP commented 3 years ago

Sorry for bothering again, I was testing my plugin in the cloud and got the error not-allowed microphone again, thanks for your help. Capture

ShockwaveNN commented 3 years ago

@3s-ThanhLNP I see that you're using personal.onlyoffice.com but I cannot understand how did you make your plugin work with personal, this site do not allow adding your own plugins

3s-ThanhLNP commented 3 years ago

Thank you, I tested it on cloud service too and got the not-allowed microphone error as well And actually the plugin still works on personal version

ShockwaveNN commented 3 years ago

I tested it on cloud service too

Which cloud version?

3s-ThanhLNP commented 3 years ago

Version 11.5.0 Capture

ShockwaveNN commented 3 years ago

This is version of CommunityServer, not version of DocumentServer

But I see you're using onlyoffice.sg region

Still I don't get how did you added plugin to cloud version?

3s-ThanhLNP commented 3 years ago

I have followed this tutorial, I think maybe I need more configuration in the manifest.json section

https://www.onlyoffice.com/blog/2019/07/how-to-add-new-plugins-in-onlyoffice-cloud-service-using-chrome-extensions/?utm_source=blog&utm_medium=social&utm_campaign=plugins_for_dev

ShockwaveNN commented 3 years ago

Oh, this explains

I'm never tried to to this, but maybe you're right, you should add permissions to manifest, explained here

3s-ThanhLNP commented 3 years ago

It's weird, I still can use webkitSpeechRecognition in chrome extension, but can't use it at onlyoffcie cloud, I got allow and not-allow at the same time.

Untitled

I ran webkitSpeechRecognition at "/main.js" or background.js in chrome extension then no problem, the microphone is allowed, but when entering the window.Asc.plugin section webkitSpeechRecognition was blocked Untitled Capture

ShockwaveNN commented 3 years ago

Could you try to get chrome_extension_example from develop?

I'm not sure but we may fixed some bugs on it

3s-ThanhLNP commented 3 years ago

if I have new webkitSpeechRecognition (); In /speech2text/scripts/speak.js then error not allow Untitled Capture

also if I am new webkitSpeechRecognition (); in main.js it should work since it belongs to "content_scripts", but then it will no longer work inside onlyoffice. 117759491-14238f00-b24e-11eb-9cc7-64b098ca2a66

ShockwaveNN commented 3 years ago

@DenisDeeSign could you take a look? I'm out of ideas

DenisDeeSign commented 3 years ago

Hello @3s-ThanhLNP, sorry, I am not familiar with plugins development from scratch. Our dev team will investigate your issue a bit later.

3s-ThanhLNP commented 3 years ago

Thank you very much, I will continue to find ways in the meantime