我已经梳理了所有为此提供的解决方案,但我的工具栏图像没有加载到Firefox中。在IE 8中正常工作 这是我的代码:
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
"save table contextmenu directionality emoticons template paste textcolor"
],
content_css: "/ipe/resources/styles/vendor/content.min.css",
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
style_formats: [
{title: 'Bold text', inline: 'b'},
{title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
{title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
{title: 'Example 1', inline: 'span', classes: 'example1'},
{title: 'Example 2', inline: 'span', classes: 'example2'},
{title: 'Table styles'},
{title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
]
});
我没有moxie manager,我还将security.fileuri.strict_origin_policy设置为false。似乎没什么用。请帮助。
答案 0 :(得分:0)
<script type="text/javascript">
tinymce.init({
selector: "#docsta",
height : 650,
mode : "textareas",
'plugins': [ 'save','advlist','lists' , 'image' ,'charmap', 'print', 'preview'],
'toolbar': 'insertfile undo redo | bold italic | alignleft aligncenter alignright alignjustify| bullist numlist outdent indent | save | print | link image | fontselect | fontsizeselect ',
forced_root_block : "",
});
</script>
试试这个适用于我的firefox