Skip to content

Commit

Permalink
Docs: Use core/block-editor instead of core/editor (#49474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean authored Mar 30, 2023
1 parent 4536b45 commit 0e2b16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/block-api/block-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To see the API for yourself the easiest way is to have a block that is at least
```js
wp.data.dispatch( 'core/annotations' ).addAnnotation( {
source: 'my-annotations-plugin',
blockClientId: wp.data.select( 'core/editor' ).getBlockOrder()[ 0 ],
blockClientId: wp.data.select( 'core/block-editor' ).getBlockOrder()[ 0 ],
richTextIdentifier: 'content',
range: {
start: 50,
Expand Down Expand Up @@ -43,7 +43,7 @@ It is also possible to annotate a block completely. In that case just provide th
```js
wp.data.dispatch( 'core/annotations' ).addAnnotation( {
source: 'my-annotations-plugin',
blockClientId: wp.data.select( 'core/editor' ).getBlockOrder()[ 0 ],
blockClientId: wp.data.select( 'core/block-editor' ).getBlockOrder()[ 0 ],
selector: 'block',
} );
```
Expand Down

0 comments on commit 0e2b16a

Please sign in to comment.