TinyMCE在impresspages插件中遇到麻烦II

时间:2015-04-19 13:20:44

标签: plugins impresspages

我已经替换了 ipTinyMceConfig()。没关系。在插件字段编辑器中,richedit正在显示菜单等。但是,当我在源代码菜单中单击时,源代码编辑器打开但禁用版本。没有打字是可能的,没有...任何想法解决它?我的代码替换是这样的:

    var originalMce =  ipTinyMceConfig;
    var ipTinyMceConfig = function(){
    var customized = originalMce();
    customized.plugins = [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons template paste textcolor"
    ];
    console.log('Entered tiny newsletter - New');
    customized.toolbar1 = "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | link image";
    customized.toolbar2 = "print preview media | forecolor backcolor emoticons | bullist numlist outdent indent";
    customized.image_advtab = true;
    customized.menubar = true;
    customized.style_formats_merge = true;
    return customized;        
}

非常感谢!

1 个答案:

答案 0 :(得分:0)

没有尝试过你的代码。你确定它被禁用了吗?也许只有某种类型的CSS叠加会挡住你的方式?