Question about ribbon functionality for plugins and ai

Hi, I have the necessity to add some custom plugin in a standard onlyoffice docker image.
In my dockerfile I copy my plugins folder under sdkjs-plugins folder and update plugin-list-default.json keeping only ootb plugin I want to keep (in my case AI)

FROM onlyoffice/documentserver:9.3.0.1
# RUN rm -rf /var/www/onlyoffice/documentserver/sdkjs-plugins/marketplace
COPY ./plugins/customPlugin /var/www/onlyoffice/documentserver/sdkjs-plugins/customPlugin
COPY ./plugins/plugin-list-default.json /var/www/onlyoffice/documentserver/sdkjs-plugins/plugin-list-default.json


##### plugin-list-default.json
[
    "ai",
    "customPlugin"
]

first question, is this the right approach?

Secondly, in the ribbon I have two buttons, “Plugin Manager” and “Background plugins”.
I want to keep the second one and hide the plugin manager but it seems that it’s not possible. If I remove the marketplace folder under sdkjs-plugins both button disappear.

Another option could be remove the marketplace functionality on “plugin manager” and only show local plugin. It’s that possible?

Last question is related to AI tab. I have the ootb plugin but I’m missing the settings button so I’m not able to configure any model.


There is anything I could do or check to restore the button? I remember in old build I was able to set model information (not from settings but from a dialog) but now I’m not able to do it anymore.

Thanks

1 Like

Hey @dadokkio, :wave:

Unfortunately, at the moment there’s no built-in way to selectively hide the “Plugin Manager” button.

I’ll clarify this exact situation with the team (how to hide Plugin Manager without killing Background plugins, and restore AI settings button). Will get back to you with any workarounds or confirmation soon.

Thanks again !

Thanks for the feedback.
Regarding the missing settings in the AI tab you have any feedback? Or do you have any link on how to proper configure aiSettings section in local.json file? I was not able to found an example with this part filled in.

EDIT: trying to execute one of the AI command from the ribbon show now the config dialog. And the settings button is now available again.

1 Like