fix some demos with hidden source

This commit is contained in:
Philipp Kühn
2021-09-18 23:01:30 +02:00
parent 80b859be8e
commit 67c33644d3
4 changed files with 6 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ tableOfContents: true
# Create menus
## Introduction
tiptap comes very raw, but thats a good thing. You have full control about the appearance of it.
tiptap comes very raw, but thats a good thing. You have full control about the appearance of it.
When we say full control, we mean it. You can (and have to) build a menu on your own. We help you to wire everything up.
@@ -18,12 +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.
<tiptap-demo name="Extensions/BubbleMenu" hideSource></tiptap-demo>
<tiptap-demo name="Extensions/BubbleMenu" hide-source></tiptap-demo>
### Floating menu
The [floating menu](/api/extensions/floating-menu) appears in empty lines. Markup and styling is totally up to you.
<tiptap-demo name="Extensions/FloatingMenu" hideSource></tiptap-demo>
<tiptap-demo name="Extensions/FloatingMenu" hide-source></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). It allows you to start a new line with `/` and will bring up a popup to select which node should be added.