Skip to content

Plan: plugins for Euro-Office #1

Open
0 of 4 issues completed
Open

Description

@juliusknorr

Goal

Make editor plugins work in Euro-Office without depending on ONLYOFFICE hosting. This repo is the single source for the plugin runtime helpers (sdkjs-plugins/v1) and a curated set of plugins that ship in the DocumentServer image.

Plan

Now

Merge order: tag v0.1.0 → DocumentServer#409 → #522 → Kubernetes-Docs#19, documentation#22

Own plugin repositories

New plugins live in Euro-Office/plugin-<name> (private for now), this repo distributes their releases

  • plugin-template: src/ ships, node --test unit tests, Playwright e2e against documentserver:latest with the plugin mounted, v* tag releases <name>.plugin
  • plugin-a11ycheck: accessibility checker for text documents (alt text, tables, headings, contrast, links, lists), open points in its issues
  • plugin-docinspector: comments, tracked changes, metadata, custom properties, hidden text before sharing, open points in its issues
  • plugin-classification: labels (default levels, VS-NfD, TLP 2.0) with header/footer marking, watermark and LibreOffice urn:bails properties, open points in its issues
  • plugins#19 external.json + scripts/fetch-external.sh, fetch before packing
  • Make the plugin repos public (or an App token), then tag v0.1.0 and add them to external.json
  • Pages build that fetches external plugins first, so the store can list them
  • Decide whether AGPL plugins may be bundled (rule below says Apache-2.0)

Later

  • Closed plugins#4 (Mendeley offline CSL): Mendeley needs api.mendeley.com anyway, 60k lines not worth it. Open: outdated default style titles
  • ai plugin, not bundled for now: background plugin (starts for every user), US providers by default, AGPL-3.0-only. Bundle only once it stays dormant until an admin configures a provider
    • plugins#11 streaming through the server proxy
    • plugins#13 test suite and CI, server settings v3/v4 mismatch fixed, no public ONLYOFFICE proxy
    • plugins#14 document agent in a docked chat sidebar
    • plugins#15 search, review, sheet structure and speaker notes tools (replaces plugins#12)
    • plugins#21 escape HTML inside LaTeX
    • Check the new tools against a real Document Server (.dev/docker), especially comments and tracked changes
    • Check that Together AI accepts the target body field through /ai-proxy
    • AI() custom function is still written into every spreadsheet on load
    • Drop the revision colour crash workaround once ONLYOFFICE/sdkjs@7ca8ffc5da is synced
    • Stay dormant until a provider is configured, then decide on bundling
  • Bundle ocr once tesseract is shipped with the plugin instead of loaded from a CDN
  • In-editor Plugin Manager (ship store/ as marketplace), if wanted
  • plugins.disable arrives with the 9.4 upstream sync, no backport
  • More e2e coverage (pluginsData, autostart, customization.plugins: false)

Decisions

  • Plugin manager CLI stays, pointed at this repo (2026-11-06). It reads https://euro-office.github.io/plugins/store/config.json and downloads .plugin files from the latest release. Containers install plugin-list-default.json at startup (PLUGINS_ENABLED, default on). Other routes keep working: mount or unzip into sdkjs-plugins/<name> (picked up without restart), editorConfig.plugins.pluginsData
  • Store lists all plugins except deepl, thesaurus, translator and zotero (AGPL Section 7, also not released). Only the CLI uses it, the in-editor store is not shipped
  • Bundled: highlightcode, photoeditor, doc2md, html (2026-11-07): offline, Apache-2.0, ~9 MB. Upstream defaults reviewed: mendeley (Elsevier login, api.mendeley.com), ocr, translator, thesaurus, youtube, speech, speechrecognition, zotero need external services or AGPL. Others only as .plugin releases
  • Image ships pinned v1/ + the bundled set via git submodule, onlyoffice.github.io URLs rewritten, no runtime requests to it
  • Stay on the Apache-2.0 snapshot (1ea9e2e, 2026-03-27). Upstream pulls only by cherry-pick, upper bound ONLYOFFICE/onlyoffice.github.io@2178658
  • New files: SPDX Apache-2.0, Euro-Office contributors. Modified Ascensio files get a one-line "Modified by Euro-Office contributors"
  • Own repositories for new plugins (2026-11-07): Euro-Office/plugin-<name> from plugin-template, AGPL-3.0-only, own tests and releases. This repo pins them in external.json and redistributes the release assets
  • Rebrand user-visible strings only, neutral wording. Keep window.Asc API, asc.{GUID} ids, Ascensio notices, onlyoffice_ai_* keys
Done
  • Repo renamed to Euro-Office/plugins and made public (2026-10-08)
  • License decision A1 (2026-10-08), bundled set decided (2026-10-08)
  • Bind-mounting a plugin into read-only sdkjs-plugins/<name> works, hello-world inserts text once v1/ is present (2026-10-08)
  • CDN assets of the bundled set localized and CI check added in plugins#3
Findings
  • Plugin runtime is intact in our fork: window.Asc.plugin, /plugins.json (server/DocService/sources/server.js), web-apps Plugins.js
  • The image ships no plugins and no v1/; /plugins.json returns {"pluginsData":[],"autostart":[]}
  • documentserver-pluginsmanager.sh was not packaged for non-ONLYOFFICE vendors, so PLUGINS_ENABLED / PLUGINS_MARKET_DISABLED were dead code. The CLI (core/DesktopEditor/pluginsmanager) accepts any store via --marketplace="<pages>;<repo>"
  • Upstream fetches v1/ unpinned from onlyoffice.github.io at build time and rewrites plugin URLs to ../ (build_tools/scripts/deploy_server.py, base.py)
  • v1/plugins.js is only a loader; the plugin API comes from our sdkjs/common/plugins/plugin_base*.js. Legacy pluginBase.js is unused, not shipped
  • Bundled visual plugins run on click; bundled background plugins autostart for everyone (only ai in the candidates)
  • Not bundled, with reason: zotero (AGPL + Section 7), ocr (tesseract from CDN), deepl (text via ONLYOFFICE proxy), translator (Google widget), thesaurus (embedded API key), languagetool (external API), ai (see Later)
  • License: upstream rewrote its whole history to AGPLv3 (+ Section 7 terms in ONLYOFFICE/onlyoffice.github.io@a3ad25b48), license text only. Our snapshot stays Apache-2.0 (grant irrevocable, §2). v1/plugins-ui.js bundles PerfectScrollbar (MIT) under an Ascensio-only header. Not legal advice

References

Sub-issues

Sub-issues

0 of 4 Issues completed
Loading 4 sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions