add mooore content

This commit is contained in:
Hans Pagel
2020-10-05 14:56:45 +02:00
parent a52f95a770
commit 2d82e4e1a7
13 changed files with 80 additions and 40 deletions

View File

@@ -1,12 +1,12 @@
<template>
<div>
<div class="actions">
<button class="button" @click="clearContent">
Clear Content
</button>
<button class="button" @click="setContent">
Set Content
</button>
<button class="button" @click="clearContent">
Clear Content
</button>
</div>
<editor-content :editor="editor" />
@@ -61,11 +61,6 @@ export default {
},
methods: {
clearContent() {
this.editor.clearContent(true)
this.editor.focus()
},
setContent() {
// You can pass a JSON document …
this.editor.setContent({
@@ -87,6 +82,11 @@ export default {
// Its likely that youd like to focus the Editor after most commands.
this.editor.focus()
},
clearContent() {
this.editor.clearContent(true)
this.editor.focus()
},
},
beforeDestroy() {