mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
add more demos
This commit is contained in:
parent
8b1b83252e
commit
aff52325a2
@ -3,4 +3,16 @@ title: 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
18
src/demos/Basic/index.vue
Normal 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>
|
Loading…
Reference in New Issue
Block a user