add more demos

This commit is contained in:
Philipp Kühn 2020-03-05 09:24:30 +01:00
parent 8b1b83252e
commit aff52325a2
2 changed files with 31 additions and 1 deletions

View File

@ -3,4 +3,16 @@ title: Test
slug: test slug: test
--- ---
<demo name="Time" /> # Super epic editor demo
- magic
- epic
<!-- <demo name="Basic" key="basic" /> -->
# Super epic time demo
- nice numbers
- nice time
<demo name="Time" key="time" />

18
src/demos/Basic/index.vue Normal file
View File

@ -0,0 +1,18 @@
<template>
<Layout>
<div ref="editor"></div>
</Layout>
</template>
<script>
import Editor from '@tiptap/core'
export default {
mounted() {
new Editor({
element: this.$refs.editor,
content: '<p>foo</p>',
})
}
}
</script>