Hi, I’m embedding ONLYOFFICE Docs Community via DocsAPI (new DocsAPI.DocEditor(…)) in a React app (backend NestJS for create-session + callback; saving works).
We inject bookmarks into DOCX on backend (names like c_). Downloading the doc and using MS Word “Go To Bookmark” works, so bookmarks are definitely present.
Goal: click a citation in React → jump to that bookmark in ONLYOFFICE using:
Api.GetDocument().GetBookmark(name).GoTo() (plugin/callCommand context).
What we tried:
-
Connector API (createConnector/callCommand/executeMethod) → not available/reliable (and docs indicate Developer/Automation).
-
Custom plugin hosted on Cloudflare Pages (config/index/code load 200; plugin appears in Plugins list and autostarts).
-
From React we tried to send commands to plugin:
-
docEditor.serviceCommand(“goToBookmark”, { bookmark })
-
docEditor.serviceCommand(“internalcommand”, { command:“goToBookmark”, data:{bookmark} })
-
docEditor.serviceCommand(“onExternalPluginMessage”, { type:“goToBookmark”, bookmark })
-
No errors, but nothing happens (no jump). Plugin code can run callCommand fine, but it never receives the message.
Question: What is the official supported way (DocsAPI embed, Community) to trigger a plugin action from the host page at runtime? Any minimal example of host→plugin message wiring for “go to bookmark”?
Thanks.