我正在尝试将jbimages插件添加到TinyMCE
.
当我添加,jbimages
到配置plugins:
行时,无法加载并在 FireBug 的控制台中出现此错误: TinyMCE
TinyMCE
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"
}
});
问题是什么?
谢谢