我在codeigniter中使用响应式文件管理器和tinymce
问题是当我选择要在编辑器中插入的图像时,由于图像路径错误而无法显示图像
我的网页网址是:http://website.com/media/index.php/post/add_new?post_type=news
当我选择一个图像时,它会形成如下图像路径:
<img src="/media/index.php/post//source/kitchen_adventurer_cheesecake_brownie.jpg" alt="" />
如果我删除“index.php / post /”它工作正常,我怎么能删除它
我的响应式文件管理器配置
$base_url = "http://website.com";
$upload_dir = '/source/';
$current_path = '../source/';
$thumbs_base_path = '../thumbs/';
tinymce配置
<script type="text/javascript">
tinymce.init({
selector: "textarea.editor",theme: "modern",width: 830,height: 300,
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste responsivefilemanager"
],
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 ",
relative_urls:false,
image_advtab: true ,
external_filemanager_path:"/media/filemanager/",
filemanager_title:"Responsive Filemanager" ,
external_plugins: { "filemanager" : "/media/filemanager/plugin.min.js"}
});
</script>
答案 0 :(得分:0)
也许你很难配置连接tiny到文件管理器的connector.php文件,你应该正确设置url!