update docs

This commit is contained in:
Philipp Kühn
2021-03-31 14:07:23 +02:00
parent 74c4beece7
commit 5095d74ec6

View File

@@ -14,14 +14,14 @@ yarn add @tiptap/extension-bubble-menu
## Settings ## Settings
| Option | Type | Default | Description | | Option | Type | Default | Description |
| ------------ | ------------- | --------- | ----------- | | ------------ | ------------- | --------- | --------------------------------------------------------- |
| element | `HTMLElement` | `null` | | | element | `HTMLElement` | `null` | The DOM element of your menu. |
| keepInBounds | `Boolean` | `true` | | | keepInBounds | `Boolean` | `true` | Specifies that the element is not rendered across bounds. |
## Source code ## Source code
[packages/extension-bubble-menu/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bubble-menu/) [packages/extension-bubble-menu/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bubble-menu/)
## Vanilla JavaScript ## Using Vanilla JavaScript
```js ```js
import { Editor } from '@tiptap/core' import { Editor } from '@tiptap/core'
import BubbleMenu from '@tiptap/extension-bubble-menu' import BubbleMenu from '@tiptap/extension-bubble-menu'