Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: example and code sync #49

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: example and code sync
ZWkang committed Mar 13, 2025
commit a9e6833799a51be149a0199f1c88117a1eb9793f
4 changes: 2 additions & 2 deletions apps/docs/src/en/guide/advanced/interactive/shortcuts.mdx
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@
```ts pure
// Add to EditorProps
{
shortcuts(shorcutsRegistry, ctx) {
shortcuts(shortcutsRegistry, ctx) {
// Press command + a to select all nodes
shorcutsRegistry.addHandlers({
shortcutsRegistry.addHandlers({
commandId: 'selectAll',
shortcuts: ['meta a', 'ctrl a'],
isEnabled: (...args) => true,
4 changes: 2 additions & 2 deletions apps/docs/src/zh/guide/advanced/interactive/shortcuts.mdx
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@
```ts pure
// 添加到 EditorProps
{
shortcuts(shorcutsRegistry, ctx) {
shortcuts(shortcutsRegistry, ctx) {
// 按住 cmmand + a,选中所有节点
shorcutsRegistry.addHandlers({
shortcutsRegistry.addHandlers({
commandId: 'selectAll',
shortcuts: ['meta a', 'ctrl a'],
isEnabled: (...args) => true,