我有 html 页面,我正在使用 tinymce 编辑器。当我在 Firefox 浏览器中打开模型并现在在 tinymce 编辑器中的任何位置拖放 jpg 图像时,它会正确插入。但是当我在 IE/Chrome 浏览器中执行相同的过程时,当我删除图像时,它不会将图像放在 tinymce 编辑器中,而是整个浏览器重新定位到图像的 url。 我无法理解为什么在 IE 和 chrome 浏览器中打开 html 页面时图像没有放在 tinymce 编辑器中(尽管它在 IE/Chrome 中正确放置)?将 jpg 图像正确放置在 IE9/Chrome 的 tinymce 编辑器中的解决方法是什么?
这是我与之相关的帖子
http://www.tinymce.com/forum/viewtopic.php?id=23597
我尝试了 ryanreeves 帖子建议的解决方案。这就是我所做的。我创建了一个名为 myCustomCSSFile.css 的 css 文件,其内容如下
html, body { height:100% }
现在在我的tinymce代码中,我将其引用如下
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "advlist",
content_css : "myCustomCSSFile.css",
theme_advanced_buttons1 : "forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,sub,sup,|,bold,italic,underline,strikethrough",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
有关信息,我已将 css 文件(即 myCustomCSSFile.css)放置在我的 html(具有上述 tinymce 代码)文件所在的同一位置。这是根据http://www.tinymce.com/wiki.php/Configuration:content_css建议的
也在http://www.tinymce.com/forum/post.php?fid=1上发布到 tinymce 论坛,但没有帮助。