Skip to content

Commit d69ab59

Browse files
authored
docs(custom-ui): link configurable toolbar example (SD-2929) (#3163)
Inline links from toolbar-and-commands.mdx and custom-commands.mdx pointing at examples/editor/custom-ui/configurable-toolbar/. Same plain-link pattern used by the selection-capture link PR (#3143). The example teaches both halves of the surface (built-in command binding + ui.commands.register), so both docs pages get a callout.
1 parent db1ad57 commit d69ab59

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/docs/editor/custom-ui/custom-commands.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function InsertClauseButton() {
5959
}
6060
```
6161

62+
See the [configurable toolbar example](https://github.com/superdoc-dev/superdoc/tree/main/examples/editor/custom-ui/configurable-toolbar) for a runnable vanilla version that registers an `example.insertClause` command alongside the built-in bold / italic / underline buttons.
63+
6264
## Naming
6365

6466
Use a namespace to avoid colliding with future built-ins. `company.insertClause`, `acme.aiRewrite`, `support.translate`. Bare names like `'rewrite'` will warn if SuperDoc later adds a built-in with the same id.

apps/docs/editor/custom-ui/toolbar-and-commands.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ function ToolbarButton({ id, label, title }: { id: string; label: string; title:
6767
}
6868
```
6969

70+
See the [configurable toolbar example](https://github.com/superdoc-dev/superdoc/tree/main/examples/editor/custom-ui/configurable-toolbar) for a runnable vanilla version: a config-driven button row that subscribes per-id and reads `disabled` / `active` straight from the controller.
71+
7072
## Commands with payloads
7173

7274
Some commands take a value. Pass it to `execute()`.

0 commit comments

Comments
 (0)