add content to the collaboration cursor extension

This commit is contained in:
Hans Pagel
2020-11-05 21:57:25 +01:00
parent 810f3d6b6d
commit f946954e91
8 changed files with 24 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
# Dropcursor
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 dont allow regular selection. For example, after a table at the end of a document.
This extension loads the [ProseMirror Dropcursor plugin](https://github.com/ProseMirror/prosemirror-dropcursor) by Marijn Haverbeke, which shows a cursor at the drop position when something is dragged over the editor.
Note that tiptap is renderless, but the dropcursor needs CSS for its appearance. The default CSS is added to the usage example below.
@@ -16,4 +16,4 @@ yarn add @tiptap/extension-dropcursor
[packages/extension-dropcursor/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-dropcursor/)
## Usage
<demo name="Extensions/Dropcursor" highlight="" />
<demo name="Extensions/Dropcursor" highlight="12,33" />