Skip to content

Commit

Permalink
Update plugin-block.md
Browse files Browse the repository at this point in the history
`blockView` is not exported from '@milkdown/plugin-block' anymore.
  • Loading branch information
masonbrothers authored Feb 19, 2024
1 parent 05d305f commit f127147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-src/plugin-block.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ You need to bind the block view to the plugin in `editor.config`.
```typescript
import { Editor } from '@milkdown/core';

import { block, blockView } from '@milkdown/plugin-block';
import { block } from '@milkdown/plugin-block';

Editor
.make()
.config((ctx) => {
ctx.set(blockView.key, {
ctx.set(block.key, {
view: blockPluginView(ctx)
})
})
Expand Down

0 comments on commit f127147

Please sign in to comment.