与我发现的所有帖子相反,我有一个TinyMCE的实例,只在Chrome和IE上为我的一个客户端读取。它只适用于Firefox。当他在tinymce网站上打开演示时,它可以工作。所以我认为问题在于我的初始化,但我不想为一个客户端删除所有问题。
我的问题是我无法弄清楚为什么会在他的计算机上发生这种情况,我尝试过没有启用JS,cookie等等。但总是可以在我的电脑上工作。是否有人遇到过这样的问题,即使你没有在readonly上设置任何内容,也无法编辑文本。
有我的代码,我再说一遍,我可以尝试删除选项以找到问题,因为我无法访问遇到问题的计算机,但我有一个我知道确认问题的人。如果您有任何想法,请随时帮助我:)
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste jbimages emoticons textcolor visualchars "
],
theme: "modern",
remove_script_host : false,
relative_urls: false,
convert_fonts_to_spans: true,
content_css : "custom_content.css",
theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
font_size_style_values: "12px,13px,14px,16px,18px,20px",
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
toolbar1: "insertfile undo redo | styleselect | bold italic | fontselect | fontsize | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
],
language : "fr_FR"
});
</script>