首页 文章

在IE / Chrome中删除WYSWYG编辑器中的图像?

提问于
浏览
1

当我在IE / Chrome中删除我的WYSWYG编辑器中的任何图像(在我的情况下为tinymce)时,IE似乎不支持它 . 当我将图像放入WYSWYG编辑器(包含在我的html页面中)时,整个浏览器重新定位到图像的url(基本上它不会将图像粘贴到编辑器中但是打开图像就像我将图像放在空IE浏览器而不是编辑器内部一样)?虽然在firefox中,图像在编辑器中正确嵌入 . 我无法弄清楚我是否设置了一些显式属性以使其像在IE中一样工作?我正在谷歌搜索从最后一天,但尚未得到解决方案 .

这是问题的概括 . 对于问题的出现和问题,这里是链接Tinymce Image drag and drop issue on Internet Explorer? . 但现在看起来它是浏览器而不是编辑器的问题,但不确定?

EDIT:- Folks Looks like its an issue with IE not editor. To ensure this i opened my gmail in firefox and drag/drop the image inside email body, it embedded correctly. When i do the same in IE, complete browser relocates to the url of the image instead of embedding in gmail mail body. Now i do not have clue what change i need to do in my code to make it work in IE?

1 回答

  • 1

    只有IE10允许通过拖放将图像上传到WYSIWYG编辑器 .

    Firefox默认将它们嵌入为数据:(这不利于保持页面大小,旧浏览器无法理解),您需要添加额外的代码才能在Chrome和Safari中处理它们 .

相关问题