我正在尝试将jbimages插件添加到TinyMCE
当我将,jbimages
添加到plugins:
TinyMCE
行配置时,TinyMCE
无法加载并在FireBug的控制台中出现此错误:
TypeError: this.getDoc() is undefined
http://localhost/proj/client/js/tiny_mce/tiny_mce.js
Line 1
我失败的TinyMCE
配置是:
tinyMCE.init({
// General options
mode : "exact",
elements : "question",
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,visualblocks,jbimages",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,ltr,rtl,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true,
language : 'fa',
directionality : "rtl",
// Drop lists for link/image/media/template bloglists
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
relative_urls:false,
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
有什么问题?
感谢
答案 0 :(得分:0)
问题解决了。
问题是我在language
中使用TinyMCE
选项而jbimages
尝试加载不存在的语言文件。
我根据this为jbimages
创建了所需的语言文件,问题解决了。