20 lines
737 B
Markdown
20 lines
737 B
Markdown
# Gapcursor
|
||
This extension loads the [ProseMirror Gapcursor plugin](https://github.com/ProseMirror/prosemirror-gapcursor) by Marijn Haverbeke, which adds a gap for the cursor in places that don’t allow regular selection. For example, after a table at the end of a document.
|
||
|
||
Note that tiptap is renderless, but the dropcursor needs CSS for its appearance. The default CSS is added to the usage example below.
|
||
|
||
## Installation
|
||
```bash
|
||
# with npm
|
||
npm install @tiptap/extension-gapcursor
|
||
|
||
# with Yarn
|
||
yarn add @tiptap/extension-gapcursor
|
||
```
|
||
|
||
## Source code
|
||
[packages/extension-gapcursor/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-gapcursor/)
|
||
|
||
## Usage
|
||
<demo name="Extensions/Gapcursor" highlight="12,33" />
|