无法使ResponsiveFileManager与TinyMCE一起使用

时间:2017-07-26 23:30:45

标签: tinymce file-manager responsive-filemanager

当我点击插入图片按钮上传图片时,我收到此弹出错误 When I click on the insert image button to upload an image I get this pop up error

    <script>tinymce.init({
        selector: 'textarea',
        height: 400,
        menubar: false,
        plugins: [
            'advlist autolink lists link image charmap print preview 
         anchor', 'searchreplace visualblocks code fullscreen',
            'insertdatetime media table contextmenu paste code '
        ],
        filemanager_crossdomain: true,


       external_filemanager_path:"responsive_filemanager/filemanager/",
        external_plugins: { "filemanager" : 
        "/responsive_filemanager/filemanager/plugin.min.js"},
        toolbar1: "undo redo | bold italic underline | alignleft 
        aligncenter alignright alignjustify | bullist numlist outdent 
        indent | styleselect",
        toolbar2: "| responsivefilemanager | link unlink anchor | image 
        media | forecolor backcolor  | print preview code ",
        image_advtab: true ,
        filemanager_title:"Responsive Filemanager" ,
    });</script>

这是我的filemanager / TinyMCE的脚本,我还没有触及config.php文件。我所做的就是下载文件并将我的脚本定向到正确的路径,然后在TinyMCE上拉出文件管理器的按钮,但是当我上传图像时,我会弹出错误。

1 个答案:

答案 0 :(得分:0)

打开lfm.php。如果您使用的是Laravel,则在config文件夹中。更改: 'base_directory'=&gt; '上市', 到文件管理器所在的目录。例如: 'base_directory'=&gt; '../ another_directory',