错误:没有定义Tinymce

时间:2012-08-24 08:02:46

标签: php tinymce

我已经在PHP上使用TinyMCE编辑器超过3个月了。

自启动以来,编辑器尚未在除Firefox之外的任何其他浏览器上加载。

即使在Firefox上,如果没有缓存,编辑器也不会加载。不久后,Firefox也一直在给我编辑问题。

我在chrome上遇到的错误是:

"Uncaught Exception : tinymce is not defined"

所以我假设对象没有被创建。但有时会创建对象,但编辑器仍然没有运气,所以我无法查看它。

任何建议都将不胜感激。

以下是我正在使用的初始化脚本:

tinyMCE.init({

        mode: "exact",
        elements: "editor",
        readonly: true,
        theme: "advanced",
        skin: "o2k7",
        plugins: "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups," + "insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable," + "visualchars,nonbreaking,xhtmlxtras,template,advlist,spellchecker",
        languages : "en",
        // Theme options - button# indicated the row# only
        theme_advanced_buttons1: "template,|,newdocument,|,bold,italic,underline,strikethrough," + "|,justifyleft,justifycenter,justifyright,justifyfull," + /*styleselect,*/
        "formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2: "pastetext,pasteword,|,search,replace,|,bullist,numlist,|," + "outdent,indent,blockquote,|,undo,redo," /*"|,link,unlink,anchor,image,cleanup,|"*/+
        ",insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,spellchecker,fullscreen",
        theme_advanced_toolbar_location: "top",
        theme_advanced_toolbar_align: "left",
        theme_advanced_statusbar_location: "bottom",
        theme_advanced_resizing: true,
        spellchecker_languages : "+English=en",
        //spellchecker_enable_learn_rpc: true,
        // Example content CSS (should be your site CSS)
        content_css: "../js/lib/tinymce/content.css",

        // Theme options - button# indicated the row# only
        theme_advanced_buttons1: "template,|,newdocument,|,bold,italic,underline,strikethrough," + "|,justifyleft,justifycenter,justifyright,justifyfull," + /*styleselect,*/
        "formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2: "pastetext,pasteword,|,search,replace,|,bullist,numlist,|,"+ "outdent,indent,blockquote,|,undo,redo," /*"|,link,unlink,anchor,image,cleanup,|"*/+
        ",insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,spellchecker,fullscreen",
        theme_advanced_toolbar_location: "top",
        theme_advanced_toolbar_align: "left",
        theme_advanced_statusbar_location: "bottom",
        theme_advanced_resizing: true,
        // Example content CSS (should be your site CSS)
        content_css: "../js/lib/tinymce/content.css",

        // Drop lists for link/image/media/template dialogs
        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",
        // template url
        template_external_list_url: "../../dynamic/templates.php?q=list",
        // on init
        oninit: onEditorLoaded
    });

是的,我正在使用tiny_mce_gzip.php来加载编辑器

0 个答案:

没有答案