Getting started with plugins
Here are some fundamental concepts for building plugins step by step:
Step 1. Coding
Use plugin methods and events while writing the plugin code.
Step 2. Adjusting the plugin style
Add the ONLYOFFICE style sheet to the index.html file to adjust your plugin to the ONLYOFFICE editor style:
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
Step 3. Localizing
Create the translations folder in the plugin directory with .json files for each language you want to add the translation for. Follow the instructions here to localize and apply the translations.
Step 4. Preparing the plugin for publication
Step 5. Testing
Step 6. Publishing
Code samples are available at https://github.com/ONLYOFFICE/sdkjs-plugins.
If you are looking for ready-to-use plugins, please visit ONLYOFFICE App Directory.