Hi there,
I wanted to get started with a OnlyOffice plugin, however except a few basic examples I found not too much support for creating Editor plugins. In contrast, DocSpace plugins even have a ready-to-use npm package to create a template, very nice.
I suppose there is nothing comparable for Desktop Editor plugins? Are there any d.ts files for the APIs, did anyone use TypeScript for developing a plugin?
My first steps were cloning the demo repo and trying to make a few changes to existing examples which worked, but if there is a better way to get to know the code than to check API documentation regularly, I’d be happy to hear.
I’m interested in that too. Many developers love TypeScript. If there were type definitions, it would be much easier to develop more robust scripts with better DX.
Currently, type definitions only work in the built-in macro editor.
Personally, I like developing my macros in VSCode and then adding some compile steps to build the macros into one file.
Thanks for chiming in and sharing your interest in TypeScript definitions for ONLYOFFICE Docs/Desktop Editors plugin APIs!
We’ll definitely consider your suggestion.
It’d be great to see how many others are on board — so if more folks are interested, please jump in! We’ll keep you posted on any updates.
Thanks for the feedback!
Thanks for your enthusiasm for TypeScript support in ONLYOFFICE Docs/Desktop Editors plugin development! I checked with our dev team, and here’s the scoop: you can absolutely use TypeScript for plugins. You’d write your plugin in TypeScript, build it into a valid HTML page with the required config manifest, and then deploy it to ONLYOFFICE. Our plugins are typically lightweight, so we don’t include a built-in build system or TypeScript definitions yet, but there’s no restriction on using TypeScript as long as the output is a proper HTML page with the manifest.
While we don’t have official .d.ts files for the window.Asc APIs yet, we’ve noted your request for better TypeScript support