sdkjs-plugins icon indicating copy to clipboard operation
sdkjs-plugins copied to clipboard

OnlyOffice Desktop Editor add plugin dont working

Open 3s-ThanhLNP opened this issue 3 years ago • 22 comments

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

3s-ThanhLNP avatar Apr 07 '21 02:04 3s-ThanhLNP

Could you attach plugin archive you've created?

ShockwaveNN avatar Apr 07 '21 05:04 ShockwaveNN

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

3s-ThanhLNP avatar Apr 07 '21 08:04 3s-ThanhLNP

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

ShockwaveNN avatar Apr 07 '21 08:04 ShockwaveNN

chess.zip please check, thank you

3s-ThanhLNP avatar Apr 07 '21 09:04 3s-ThanhLNP

You got subfolder inside it

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

image

ShockwaveNN avatar Apr 07 '21 09:04 ShockwaveNN

really sorry, i made a big mistake,

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

3s-ThanhLNP avatar Apr 07 '21 10:04 3s-ThanhLNP

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

ShockwaveNN avatar Apr 07 '21 11:04 ShockwaveNN

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 avatar Apr 20 '21 06:04 3s-ThanhLNP

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

3s-ThanhLNP avatar May 10 '21 08:05 3s-ThanhLNP

@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

ShockwaveNN avatar May 10 '21 08:05 ShockwaveNN

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

3s-ThanhLNP avatar May 10 '21 08:05 3s-ThanhLNP

I tested it on cloud service too

Which cloud version?

ShockwaveNN avatar May 10 '21 08:05 ShockwaveNN

Version 11.5.0 Capture

3s-ThanhLNP avatar May 10 '21 09:05 3s-ThanhLNP

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?

ShockwaveNN avatar May 10 '21 09:05 ShockwaveNN

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

3s-ThanhLNP avatar May 10 '21 09:05 3s-ThanhLNP

Oh, this explains

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

ShockwaveNN avatar May 10 '21 09:05 ShockwaveNN

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

3s-ThanhLNP avatar May 11 '21 04:05 3s-ThanhLNP

Could you try to get chrome_extension_example from develop?

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

ShockwaveNN avatar May 11 '21 07:05 ShockwaveNN

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

3s-ThanhLNP avatar May 11 '21 07:05 3s-ThanhLNP

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

ShockwaveNN avatar May 11 '21 08:05 ShockwaveNN

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

DenisDeeSign avatar May 11 '21 13:05 DenisDeeSign

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

3s-ThanhLNP avatar May 12 '21 01:05 3s-ThanhLNP