Skip to content
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

解决Firefox下图片上传后返回值接收错误 #96

Closed
jimmykuu opened this issue May 25, 2015 · 1 comment
Closed

解决Firefox下图片上传后返回值接收错误 #96

jimmykuu opened this issue May 25, 2015 · 1 comment

Comments

@jimmykuu
Copy link

plugins/image-dialog/image-dilaog.js 153行

Firefox 里面 innerText 无效,要通过 textContent 取值,因此改成这样就可以了:

var json = uploadIframe.contentWindow.document.body.innerText;
if (!json) {
    json = uploadIframe.contentWindow.document.body.textContent;
}
@pandao
Copy link
Owner

pandao commented Jun 2, 2015

@jimmykuu fixed @v1.4.5

@pandao pandao closed this as completed Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants