Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
24
docs/src/demos/Examples/FullEditor/index.vue
Normal file
24
docs/src/demos/Examples/FullEditor/index.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div>
|
||||
<full-editor v-model="content" />
|
||||
<div>
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { FullEditor } from '@tiptap/vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
FullEditor,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
content: '<p>full editor</p>',
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
3
docs/src/docPages/examples/full-editor.md
Normal file
3
docs/src/docPages/examples/full-editor.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Full Editor
|
||||
|
||||
<demo name="Examples/FullEditor" />
|
||||
@@ -13,7 +13,7 @@ import { Editor } from '@tiptap/core'
|
||||
import { defaultExtensions } from '@tiptap/starter-kit'
|
||||
|
||||
new Editor({
|
||||
element: document.getElementsByClassName('element'),
|
||||
element: document.querySelector('.element'),
|
||||
extensions: defaultExtensions(),
|
||||
content: '<p>Hey there!</p>',
|
||||
autoFocus: true,
|
||||
|
||||
Reference in New Issue
Block a user