|
@@ -48,7 +48,9 @@
|
|
|
</Header>
|
|
|
<div class="blog-editor-container">
|
|
|
<div class="container">
|
|
|
- <editor/>
|
|
|
+ <editor
|
|
|
+ @editorMounted="initBlogContent"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -70,6 +72,14 @@ export default {
|
|
|
},
|
|
|
async fetch({params, store}){
|
|
|
await store.dispatch('instructor/blog/fetchBlogById', params.id)
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ initBlogContent(initContent) {
|
|
|
+ debugger
|
|
|
+ if (this.blog && this.blog.content) {
|
|
|
+ initContent(this.blog.content)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|