-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
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
秀米编辑文章后点击导出无法将内容返回给uedior #170
Comments
建议本地调试时将 这是由于postMessage里的targetOrigin并不完全匹配导致的 |
我也有这个问题,秀米编辑的文本都回显出来了,但是值没有双向绑定 |
只能通过这种方式 this.formData.introduce = this.editorInstance.getContent();赋值 |
抓取图片时候返回的数据为什么是undefined: [url] |
首先感谢作者提供这么好的组件!
https://hc199421.gitee.io/vue-ueditor-wrap/#/xiumi,
我按照第二种方式集成秀米,但是编辑文章后点击导出无法将内容返回给uedior
window.addEventListener( 'message', function (event) { console.log('Received message from xiumi, origin: %o %o', event.origin, xiumi_url); if (event.origin == xiumi_url) { console.log('Inserting html'); editor.execCommand('insertHtml', event.data); editor.fireEvent('catchRemoteImage'); // 注意:这里要触发一下抓取远程图片的事件,才能把秀米图片转存到自己的存储服务上 console.log('Xiumi dialog is closing', event.data); dialog.close(); } }, false );
控制台并未打印 console.log('Received message from xiumi, origin: %o %o', event.origin, xiumi_url);监听没有执行,希望作者能帮我解惑
The text was updated successfully, but these errors were encountered: