move docs to own folder

This commit is contained in:
Philipp Kühn
2020-04-17 12:51:49 +02:00
parent 4574b74864
commit 3c0727fd59
32 changed files with 360 additions and 1148 deletions

View File

@@ -0,0 +1,65 @@
<template>
<Layout>
<h1>{{ $page.post.title }}</h1>
<VueRemarkContent />
<div ref="editor"></div>
</Layout>
</template>
<page-query>
query Post ($id: ID!) {
post(id: $id) {
title
}
}
</page-query>
<script>
import Editor from '@tiptap/core'
export default {
mounted() {
// console.log(tiptap())
// new Editor({
// element: this.$refs.editor,
// content: '<p>test <strong>strong</strong></p>',
// })
// .setContent('<p>hey</p>')
// .registerCommand('lol', (next) => {
// console.log('lol')
// next()
// })
// .focus('end')
// .insertText('mega ')
// .focus('start')
// .command('insertText', 'giga ')
// .lol()
// .registerCommand('insertHTML', (next, editor, html) => {
// console.log(html)
// next()
// })
// .registerCommand('insertHello', async (next, editor) => {
// await editor.insertHTML('<strong>HELLO</strong>')
// next()
// })
// .registerCommand('insertHello', (next, editor) => {
// editor
// .focus('start')
// .insertHTML('<strong>HELLO</strong>')
// next()
// })
// .focus('start')
// .insertHello()
// .insertText('eins')
// .insertText('zwei')
// .insertText('drei')
// .insertHello()
// .focus('end')
// .insertHTML('<p>end</p>')
}
}
</script>