replace demo component with custom element

This commit is contained in:
Philipp Kühn
2021-08-25 23:10:20 +02:00
parent 96a7310b9d
commit 956b381f8d
83 changed files with 136 additions and 155 deletions

View File

@@ -18,24 +18,12 @@ A fixed menu, for example on top of the editor, can be anything. We dont prov
### Bubble menu
The [bubble menu](/api/extensions/bubble-menu) appears when selecting text. Markup and styling is totally up to you.
<demos
:items="{
Vue: 'Extensions/BubbleMenu/Vue',
React: 'Extensions/BubbleMenu/React',
}"
hide-source
/>
<tiptap-demo name="Extensions/BubbleMenu" hideSource></tiptap-demo>
### Floating menu
The [floating menu](/api/extensions/floating-menu) appears in empty lines. Markup and styling is totally up to you.
<demos
:items="{
Vue: 'Extensions/FloatingMenu/Vue',
React: 'Extensions/FloatingMenu/React',
}"
hide-source
/>
<tiptap-demo name="Extensions/FloatingMenu" hideSource></tiptap-demo>
### Slash commands (work in progress)
Its not an official extension yet, but [theres an experiment you can use to add what we call slash commands](/experiments/commands). Itll allow you to start a new line with `/` and will bring up a popup to select which node should be added.