我正在使用TinyMCe编辑器的响应式文件管理器插件,它运行得非常好。
我的问题我无法在子文件夹或目录中选择任何图像或文件,只能在第一个目录中使用。
这是Javascript代码
<script type="text/javascript" src="<?PHP echo base_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
// base_url:false,
external_filemanager_path: "/cootel/filemanager/",
filemanager_title: "Responsive Filemanager",
external_plugins: {"filemanager": "<?PHP echo base_url('../filemanager/plugin.min.js') ?>"},
relative_urls: false,
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 colorpicker textpattern responsivefilemanager"//imagetools
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
// imagetools_cors_hosts: ['mydomain.com', 'otherdomain.com'],
image_advtab: true,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});</script>
我的配置
'upload_dir' => '/cootel/assets/img/editor/',
'current_path' => '../assets/img/editor/',
'thumbs_base_path' => '../assets/img/thumbs/',
由于
答案 0 :(得分:0)
尝试更新您的浏览器,最新的Google Chrome浏览器最适合我。