Closed hyunn12 closed 10 months ago
I use '@toast-ui/vue-editor' v3.2.1 with vue2 It works until a few days ago, but it suddenly does not work since last weekend.
The weird thing is this.$refs.toastEditor.invoke('getHTML') is work, but only this.$refs.toastEditor.invoke('setHTML', value) is not work.
this.$refs.toastEditor.invoke('getHTML')
this.$refs.toastEditor.invoke('setHTML', value)
this is my vue component code. and there no error message in console
<template> <div> <editor ref="toastEditor" initialEditType="wysiwyg"></editor> </div> </template> <script> import { Editor } from '@toast-ui/vue-editor' export default { components: { editor: Editor }, methods: { getContents: function () { this.$refs.toastEditor.invoke('getHTML') }, setContents: function (value) { // value format like '<p>test</p><p>test</p>' // there's nothing in editor this.$refs.toastEditor.invoke('setHTML', value) } } } </script>
I found other menu's editor is working now..
I use '@toast-ui/vue-editor' v3.2.1 with vue2 It works until a few days ago, but it suddenly does not work since last weekend.
The weird thing is
this.$refs.toastEditor.invoke('getHTML')
is work, but onlythis.$refs.toastEditor.invoke('setHTML', value)
is not work.this is my vue component code. and there no error message in console