diff --git a/docs/src/demos/Examples/BubbleMenu/React/index.jsx b/docs/src/demos/Examples/Menus/React/index.jsx similarity index 59% rename from docs/src/demos/Examples/BubbleMenu/React/index.jsx rename to docs/src/demos/Examples/Menus/React/index.jsx index 01787e1f..dd6ca274 100644 --- a/docs/src/demos/Examples/BubbleMenu/React/index.jsx +++ b/docs/src/demos/Examples/Menus/React/index.jsx @@ -1,5 +1,10 @@ import React from 'react' -import { useEditor, EditorContent, BubbleMenu } from '@tiptap/react' +import { + useEditor, + EditorContent, + BubbleMenu, + FloatingMenu, +} from '@tiptap/react' import { defaultExtensions } from '@tiptap/starter-kit' import './styles.scss' @@ -37,6 +42,28 @@ export default () => { code } + + {editor && + + + + } + ) diff --git a/docs/src/demos/Examples/BubbleMenu/React/index.spec.js b/docs/src/demos/Examples/Menus/React/index.spec.js similarity index 100% rename from docs/src/demos/Examples/BubbleMenu/React/index.spec.js rename to docs/src/demos/Examples/Menus/React/index.spec.js diff --git a/docs/src/demos/Examples/BubbleMenu/React/styles.scss b/docs/src/demos/Examples/Menus/React/styles.scss similarity index 59% rename from docs/src/demos/Examples/BubbleMenu/React/styles.scss rename to docs/src/demos/Examples/Menus/React/styles.scss index 12c87298..9489311c 100644 --- a/docs/src/demos/Examples/BubbleMenu/React/styles.scss +++ b/docs/src/demos/Examples/Menus/React/styles.scss @@ -2,4 +2,9 @@ > * + * { margin-top: 0.75em; } + + ul, + ol { + padding: 0 1rem; + } } diff --git a/docs/src/demos/Examples/BubbleMenu/Vue/index.spec.js b/docs/src/demos/Examples/Menus/Vue/index.spec.js similarity index 100% rename from docs/src/demos/Examples/BubbleMenu/Vue/index.spec.js rename to docs/src/demos/Examples/Menus/Vue/index.spec.js diff --git a/docs/src/demos/Examples/BubbleMenu/Vue/index.vue b/docs/src/demos/Examples/Menus/Vue/index.vue similarity index 61% rename from docs/src/demos/Examples/BubbleMenu/Vue/index.vue rename to docs/src/demos/Examples/Menus/Vue/index.vue index d803dc94..7aa15d5e 100644 --- a/docs/src/demos/Examples/BubbleMenu/Vue/index.vue +++ b/docs/src/demos/Examples/Menus/Vue/index.vue @@ -11,18 +11,37 @@ code + + + + + + +