Getting started with plugins
ONLYOFFICE plugins are interactive tools built with HTML, CSS, and JavaScript that embed native-feeling features directly into the editors. Install them once and make them available to all users.
If you prefer to start coding right away, go directly to the quick start or try things out in the interactive playground.
What you can build
Build sophisticated integrations that feel native to ONLYOFFICE.
Perfect for:
- Embedding external content (YouTube, media galleries)
- Third-party integrations (Translator, Zotero, CRM systems)
- Advanced processing (OCR, image manipulation, data visualization)
- Custom workflows (form builders, approval systems, templates)
Development profile:
- Time: 2-7 days | Skill: Intermediate | Tech: HTML/CSS/JavaScript
- Distribution: ONLYOFFICE Marketplace or private deployment
Browse live examples in ONLYOFFICE Marketplace
What plugins cannot do
- Directly access the editor's internal DOM or JavaScript scope
- Access the file system on the user's machine
- Bypass the API to perform operations not exposed by the plugin SDK
This sandboxing is intentional - it keeps the editor stable and secure regardless of what the plugin does.
Comparing approaches
Not sure which approach fits your use case? See how plugins compare to macros and custom AI tools.
| Feature | Plugins | Macros | AI tools |
|---|---|---|---|
| What is it? | HTML/CSS/JS app embedded in editor | JavaScript code in documents | Plugin + AI provider integration |
| Installation | Required (marketplace or manual) | None (embedded in docs) | Required (like plugins) |
| User interface | ✅ Full custom UI | ❌ No UI | ✅ Full custom UI |
| External APIs | ✅ Yes (REST, GraphQL, etc.) | ❌ No | ✅ Yes (AI services required) |
| Offline use | ⚠️ Depends on features | ✅ Fully offline | ❌ Requires internet |
| Skill level | Intermediate | Beginner | Advanced |
| Dev time | 2-7 days | 30 mins - 2 hours | 3-10 days |
| Distribution | Marketplace, GitHub, private | Copy-paste, templates | Marketplace, private |
| Best for | Reusable tools, integrations | Personal automation | AI-powered features |
| Framework support | ✅ React, Vue, Angular | ❌ Vanilla JS only | ✅ Any framework |
Also available: Macros | Custom AI tools
Troubleshooting
Plugin doesn't appear:
- Check
config.jsonhas a unique GUID - Verify file paths are correct
- Restart ONLYOFFICE
JavaScript errors:
- Open browser DevTools (F12)
- Check the Console tab for error messages
- Verify
plugin.jsis loaded
API methods fail:
- Ensure your ONLYOFFICE version supports the method
- Check method syntax in the API reference
- Verify editor type compatibility
Need more help?
- Developer Forum - Community support
- GitHub Issues - Report bugs
- Stack Overflow - Q&A archive
Resources
- Interactive playground - Test code without installation
- UI component library - Pre-built components
- Plugin templates - Starter projects
- Browser DevTools - Debugging guide
- Plugin examples - Working examples
- API reference - Complete API documentation
- Plugin structure - Configuration guide
- FAQ - Frequently asked questions
- Forum - Community support
- GitHub - Source code and contributions
- Changelog - Latest API updates