0

我在 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 加载编辑器

4

0 回答 0