1

我正在尝试将jbimages插件添加到TinyMCE.
当我添加,jbimages到配置plugins:行时,无法加载并在 FireBug 的控制台中出现此错误: TinyMCETinyMCE

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"
    }
});

问题是什么?
谢谢

4

1 回答 1

0

问题解决了。
问题是我正在使用该language选项TinyMCEjbimages尝试加载不存在的语言文件。我根据这个
创建了所需的语言文件,问题就解决了。jbimages

于 2012-08-27T11:59:06.850 回答