|
1 | 1 | ---
|
2 |
| -title: Hyperlink Toolbar |
3 |
| -description: The Hyperlink Toolbar appears whenever you hover a link in the editor. |
4 |
| -imageTitle: Hyperlink Toolbar |
5 |
| -path: /docs/hyperlink-toolbar |
| 2 | +title: Link Toolbar |
| 3 | +description: The Link Toolbar appears whenever you hover a link in the editor. |
| 4 | +imageTitle: Link Toolbar |
| 5 | +path: /docs/link-toolbar |
6 | 6 | ---
|
7 | 7 |
|
8 | 8 | import { Example } from "@/components/example";
|
9 | 9 |
|
10 |
| -# Hyperlink Toolbar |
| 10 | +# Link Toolbar |
11 | 11 |
|
12 |
| -The Hyperlink Toolbar appears whenever you hover a link in the editor. |
| 12 | +The Link Toolbar appears whenever you hover a link in the editor. |
13 | 13 |
|
14 | 14 | TODO Image
|
15 | 15 |
|
16 |
| -[//]: # '<img style={{maxWidth: "600px"}} src="/img/screenshots/hyperlink_toolbar.png" alt="image" />' |
| 16 | +[//]: # '<img style={{maxWidth: "600px"}} src="/img/screenshots/link_toolbar.png" alt="image" />' |
17 | 17 |
|
18 |
| -## Changing the Hyperlink Toolbar |
| 18 | +## Changing the Link Toolbar |
19 | 19 |
|
20 |
| -You can change or replace the Hyperlink Toolbar with your own React component. In the demo below, a button is added to the default Hyperlink Toolbar, which opens a browser alert. |
| 20 | +You can change or replace the Link Toolbar with your own React component. In the demo below, a button is added to the default Link Toolbar, which opens a browser alert. |
21 | 21 |
|
22 |
| -[//]: # (<Example name="ui-components/hyperlink-toolbar-buttons" />) |
| 22 | +[//]: # (<Example name="ui-components/link-toolbar-buttons" />) |
23 | 23 |
|
24 |
| -We use the `HyperlinkToolbar` component to create a custom Hyperlink Toolbar. By specifying its children, we can replace the default buttons in the toolbar with our own. |
| 24 | +We use the `LinkToolbar` component to create a custom Link Toolbar. By specifying its children, we can replace the default buttons in the toolbar with our own. |
25 | 25 |
|
26 |
| -This custom Hyperlink Toolbar is passed to a `HyperlinkToolbarController`, which controls its position and visibility (above or below the hovered link). |
| 26 | +This custom Link Toolbar is passed to a `LinkToolbarController`, which controls its position and visibility (above or below the hovered link). |
27 | 27 |
|
28 |
| -Setting `hyperlinkToolbar={false}` on `BlockNoteView` tells BlockNote not to show the default Hyperlink Toolbar. |
| 28 | +Setting `linkToolbar={false}` on `BlockNoteView` tells BlockNote not to show the default Link Toolbar. |
29 | 29 |
|
30 | 30 | <div className="nx-mt-6 nx-leading-7 first:nx-mt-0">
|
31 | 31 | <small>
|
32 |
| - <strong>Tip:</strong> The children you pass to the `HyperlinkToolbar` |
33 |
| - component should be default buttons (e.g. TODO) or custom dropdowns/buttons |
34 |
| - (`ToolbarDropdown` & `ToolbarButton`). To see all the components you can |
35 |
| - use, head to the [Hyperlink Toolbar's source code](link). |
| 32 | + <strong>Tip:</strong> The children you pass to the `LinkToolbar` |
| 33 | + component should be default buttons (e.g. TODO) or custom selects/buttons |
| 34 | + (`ToolbarSelect` & `ToolbarButton`). To see all the components you can |
| 35 | + use, head to the [Link Toolbar's source code](link). |
36 | 36 | </small>
|
37 | 37 | </div>
|
0 commit comments