Skip to content

Commit

Permalink
Fixed dead links (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski authored Jul 17, 2024
1 parent ca2f5de commit b20292a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/pages/docs/custom-schemas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ type MyPartialBlock = typeof schema.PartialBlock;

### Automatically override all default types (experimental)

Alternatively, the easiest way to get full type safety without any additional work is to override all default types with your custom schema, by using a custom type definition file. See this [example blocknote.d.ts](https://github.com/TypeCellOS/BlockNote/blob/main/examples/05-custom-schema/react-custom-styles/blocknote.d.ts.example). This is an experimental feature - we would love to hear your feedback on this approach.
Alternatively, the easiest way to get full type safety without any additional work is to override all default types with your custom schema, by using a custom type definition file. See this [example blocknote.d.ts](https://github.com/TypeCellOS/BlockNote/blob/main/examples/06-custom-schema/react-custom-styles/blocknote.d.ts.example). This is an experimental feature - we would love to hear your feedback on this approach.
2 changes: 1 addition & 1 deletion docs/pages/docs/editor-basics/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The hook takes two optional parameters:
The `useCreateBlockNote` hook is actually a simple `useMemo` wrapper around
the `BlockNoteEditor.create` method. You can use this method directly if you
want to control the editor lifecycle manually. For example, we do this in
the [Saving & Loading example](/examples/basic/saving-loading) to delay the
the [Saving & Loading example](/examples/backend/saving-loading) to delay the
editor creation until some content has been fetched from an external data
source.
</p>
Expand Down
9 changes: 0 additions & 9 deletions docs/pages/docs/ui-components/side-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,3 @@ You can also change the items in the Drag Handle Menu. The demo below adds an it
<Example name="ui-components/side-menu-drag-handle-items" />

Here, we use the `SideMenu` component but keep the default buttons (we don't pass any children). Instead, we pass our customized Drag Handle Menu using the `dragHandleMenu` prop.

<div className="nx-mt-6 nx-leading-7 first:nx-mt-0">
<small>
<strong>Tip:</strong> The children you pass to the `DragHandleMenu` component
should be default items (e.g. `RemoveBlockItem`) or custom items
(`DragHandleMenuItem`). To see all the components you can use, head to the
[Drag Handle Menu's source code](link).
</small>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ In this example, we add a blue text/background color and code style button to th

- [Changing the Formatting Toolbar](/docs/ui-components/formatting-toolbar#changing-the-formatting-toolbar)
- [Manipulating Inline Content](/docs/editor-api/manipulating-inline-content)
- [Hooks](TODO)
- [Editor Setup](/docs/editor-basics/setup)

0 comments on commit b20292a

Please sign in to comment.