Where did I make mistake it does not show the TinyMCE and Reponsive Filemanager, This is their website:
This is my folder structure:
--Home/example/
--public_html
--media
--thumbs
--laravel
--vendor
--filemanager
--filemanager
--dialog.php
--config
--config.php
--resource
--views
--posts
--edit.blade.php
--mail
--www
--etc
TinyMCE config which is in edit.blade.php:
tinymce.init({
.
.
.
image_advtab: true ,
relative_urls:false,
auto_focus: "main_editor",
entity_encoding: 'raw',
paste_auto_cleanup_on_paste : true,
},
external_filemanager_path:"../laravel/vendor/filemanager/filemanager/",
filemanager_title:"Filemanager",
external_plugins: { "filemanager" : "../laravel/vendor/filemanager/filemanager/plugin.min.js"}
});
Config of Responsive Filemanager which is in config.php:
'base_url' => 'http://example.com'
'upload_dir' => '/public_html/media/',
'current_path' => '../../../../public_html/media/',
'thumbs_base_path' => '../../../../public_html/thumbs/',
Thank you.
答案 0 :(得分:0)
external_filemanager_path和external_plugins路径必须是绝对的,所以从/开始 并且不要在config.php中触摸base_url
答案 1 :(得分:0)
这是不可能的,因为Javascript是客户端脚本,无法在Public_html目录之外访问。