We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<button @click="uploadimg">upload</button> <mavon-editor ref="mavonEditor" v-model="formValidate.content" @imgAdd="$imgAdd" @imgDel="$imgDel" />
uploadimg($e){ var formdata = new FormData(); for(var _img in this.img_file){ formdata.append('file', this.img_file[_img]); } axios({ url: '/material/add', method: 'post', data: formdata, headers: { 'Content-Type': 'multipart/form-data' }, }).then((res) => { this.$refs.mavonEditor.$imgAddByUrl('./0', res.data.url)// 这个生效 this.$refs.mavonEditor.$img2Url('![图片](./0)', '![图片]('+ res.data.url +')')// 不生效 this.$refs.mavonEditor.$imglst2Url(['./0', res.data.url])// 不生效 console.log(res); }) },
是不是我用的不对啊,我感觉![图片](./0)没有被改变成![图片](http://xxx)啊
![图片](./0)
![图片](http://xxx)
The text was updated successfully, but these errors were encountered:
函数代码改为:
this.$refs.mavonEditor.$imglst2Url([['./0', res.data.url]])
Sorry, something went wrong.
thanks
No branches or pull requests
是不是我用的不对啊,我感觉
![图片](./0)
没有被改变成![图片](http://xxx)
啊The text was updated successfully, but these errors were encountered: