| | |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { Editor, Toolbar } from '@wangeditor/editor-for-vue' |
| | | export default { |
| | |
| | | console.log(`${file.name} 上传出错`, err, res) |
| | | }, |
| | | }, |
| | | |
| | | |
| | | } |
| | | }, |
| | | mode: 'default', // or 'simple' |
| | |
| | | this.editor = Object.seal(editor) |
| | | }, |
| | | onChange (editor) { |
| | | console.log('editor', editor) |
| | | // debugger |
| | | this.$emit('edit', this.content.content) |
| | | // this.value = this.html |
| | | // console.log(this.content); |
| | | }, |
| | | |
| | | |
| | | // onBlur (editor) { |
| | | // console.log('onBlur', editor) |
| | | // this.$emit('edit', this.html) |
| | | // }, |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style src="@wangeditor/editor/dist/css/style.css"></style> |
| | | <style src="@wangeditor/editor/dist/css/style.css"></style> |