|
@@ -90,7 +90,7 @@ export default {
|
|
|
return {
|
|
|
fullScreen: false,
|
|
|
loading: false,
|
|
|
- inputValue: this.value,
|
|
|
+ inputValue: '',
|
|
|
edit: false,
|
|
|
init: {
|
|
|
auto_focus: true,
|
|
@@ -119,10 +119,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
+ value: {
|
|
|
+ handler(newV, oldV) {
|
|
|
+ this.inputValue = newV
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ },
|
|
|
inputValue: {
|
|
|
handler(newV, oldV) {
|
|
|
- // this.inputValue = newV
|
|
|
- console.log(newV, oldV)
|
|
|
this.resetImgSrc(newV)
|
|
|
},
|
|
|
immediate: true
|
|
@@ -139,6 +143,7 @@ export default {
|
|
|
// document.getElementById(`inputUpload_${this.id}`).click()
|
|
|
// }
|
|
|
// })
|
|
|
+ console.log(this.value)
|
|
|
tinymce.init({ selector: `.tinymce_${this.id}` })
|
|
|
},
|
|
|
methods: {
|