update content

This commit is contained in:
Hans Pagel
2020-10-28 16:32:06 +01:00
parent 8c3a2b7d1c
commit 3518943e62
9 changed files with 288 additions and 257 deletions

View File

@@ -11,13 +11,19 @@
</template>
<script>
import { Editor } from '@tiptap/core'
import { Editor, mergeAttributes } from '@tiptap/core'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text'
import Link from '@tiptap/extension-link'
const CustomLink = Link.extend({
renderHTML({ attributes }) {
return ['strong', mergeAttributes(attributes, { rel: this.options.rel }), 0]
},
})
export default {
components: {
EditorContent,
@@ -35,7 +41,7 @@ export default {
Document(),
Paragraph(),
Text(),
Link(),
CustomLink(),
],
content: `
<p>