Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnlyOffice Desktop Editor add plugin dont working #152

Open
3s-ThanhLNP opened this issue Apr 7, 2021 · 22 comments
Open

OnlyOffice Desktop Editor add plugin dont working #152

3s-ThanhLNP opened this issue Apr 7, 2021 · 22 comments

Comments

@3s-ThanhLNP
Copy link

3s-ThanhLNP commented Apr 7, 2021

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
Copy link
Contributor

Could you attach plugin archive you've created?

@3s-ThanhLNP
Copy link
Author

3s-ThanhLNP commented Apr 7, 2021

@ShockwaveNN
Copy link
Contributor

ShockwaveNN commented Apr 7, 2021

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

@3s-ThanhLNP
Copy link
Author

chess.zip
please check, thank you

@ShockwaveNN
Copy link
Contributor

You got subfolder inside it

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

image

@3s-ThanhLNP
Copy link
Author

really sorry, i made a big mistake,

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

@ShockwaveNN
Copy link
Contributor

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

@3s-ThanhLNP
Copy link
Author

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
Copy link
Author

3s-ThanhLNP commented May 10, 2021

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 3s-ThanhLNP reopened this May 10, 2021
@ShockwaveNN
Copy link
Contributor

@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
Copy link
Author

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
Copy link
Contributor

I tested it on cloud service too

Which cloud version?

@3s-ThanhLNP
Copy link
Author

Version 11.5.0
Capture

@ShockwaveNN
Copy link
Contributor

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
Copy link
Author

@ShockwaveNN
Copy link
Contributor

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
Copy link
Author

3s-ThanhLNP commented May 11, 2021

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
Copy link
Contributor

Could you try to get chrome_extension_example from develop?

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

@3s-ThanhLNP
Copy link
Author

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
Copy link
Contributor

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

@DenisDeeSign
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants