Skip to content

Commit

Permalink
fix(editor): set content
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Jun 28, 2020
1 parent 16b4290 commit e068e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/QuasarTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ export default {
setContent () {
try {
this.json = JSON.parse(this.content)
this.html = ''
} catch (e) {
this.html = this.content
this.json = {}
}
// From JSON
Expand Down

0 comments on commit e068e7d

Please sign in to comment.