【问题标题】:Config KCFinder in TinyMCE在 TinyMCE 中配置 KCFinder
【发布时间】:2016-12-14 09:39:23
【问题描述】:

我使用 TinyMCE 作为文本字段,我需要它可以在其中上传图像,为此我使用 KCFinder,问题是当我点击 Upload Images 时,它只出现一个框白色:TinyMCE 的以下初始化代码(注意:我正在编程):

vm.tinymceOptions = {
    resize: false,
    height: 300,
    menubar: false,
    plugins: 'autolink link image preview fullscreen textcolor ',
    toolbar: 'undo, redo | styleselect  | cut, copy, paste | bold, italic, underline, strikethrough | subscript, superscript | alignleft aligncenter alignright | link image | preview, forecolor',
    file_browser_callback: function(field, url, type, win) {
        tinyMCE.activeEditor.windowManager.open({
            file: 'app/template/plugin/kcfinder/browse.php?opener=tinymce4&field=' + field + '&type=' + type,
            title: 'KCFinder - Caminho atual: ',
            width: 700,
            height: 400,
            inline: true,
            close_previous: false
        }, {
            window: win,
            input: field
        });     
        return false;
    }
};

这就是我在 TinyMCE 中打开图片上传时出现的内容:

【问题讨论】:

    标签: javascript angularjs file-upload tinymce kcfinder


    【解决方案1】:

    config.php

    // 一般设置

    'disabled' => **true**,
    'uploadURL' => "upload",
    'uploadDir' => "",
    'theme' => "default",
    

    改变 // 一般设置

    'disabled' => **false**,
    'uploadURL' => "upload",
    'uploadDir' => "",
    'theme' => "default",
    

    【讨论】:

    • 我试过这个配置,但是没有用,sabe问题还在继续
    猜你喜欢
    • 2013-11-28
    • 1970-01-01
    • 1970-01-01
    • 2013-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多