From 729fa7f0360fd4eabaf878bbb7b575967ef6a07b Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 5 Nov 2020 11:46:27 +0100 Subject: [PATCH] add content to the gapcursor page --- .../demos/Extensions/Gapcursor/index.spec.js | 5 ++ docs/src/demos/Extensions/Gapcursor/index.vue | 77 +++++++++++++++++++ docs/src/docPages/api/extensions/gapcursor.md | 12 +-- 3 files changed, 85 insertions(+), 9 deletions(-) create mode 100644 docs/src/demos/Extensions/Gapcursor/index.spec.js create mode 100644 docs/src/demos/Extensions/Gapcursor/index.vue 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/)