diff --git a/docs/src/demos/Extensions/Gapcursor/index.spec.js b/docs/src/demos/Extensions/Gapcursor/index.spec.js new file mode 100644 index 00000000..3adf87fd --- /dev/null +++ b/docs/src/demos/Extensions/Gapcursor/index.spec.js @@ -0,0 +1,5 @@ +context('/examples/gapcursor', () => { + before(() => { + cy.visit('/examples/gapcursor') + }) +}) diff --git a/docs/src/demos/Extensions/Gapcursor/index.vue b/docs/src/demos/Extensions/Gapcursor/index.vue new file mode 100644 index 00000000..14e46c2a --- /dev/null +++ b/docs/src/demos/Extensions/Gapcursor/index.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/docs/src/docPages/api/extensions/gapcursor.md b/docs/src/docPages/api/extensions/gapcursor.md index 1f16726b..52d358f2 100644 --- a/docs/src/docPages/api/extensions/gapcursor.md +++ b/docs/src/docPages/api/extensions/gapcursor.md @@ -1,4 +1,7 @@ # 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 @@ -9,15 +12,6 @@ npm install @tiptap/extension-gapcursor yarn add @tiptap/extension-gapcursor ``` -## Settings -*None* - -## Commands -*None* - -## Keyboard shortcuts -*None* - ## Source code [packages/extension-gapcursor/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-gapcursor/)