Hi Im using Filebrowser for Django and also TinyMCE. I include TinyMCE in my admin text area editor by adding a admin template to folder media in my templates with filename base_site.html
嗨我使用Filebrowser为Django和TinyMCE。我在我的管理文本区域编辑器中包含TinyMCE,在我的模板中使用文件名base_site.html添加管理模板到文件夹媒体
Now when I add a image with filebrowser, tiny_mce adds a leading ../../../../ before /media/uploads/etc/image.jpg
现在,当我使用filebrowser添加图像时,tiny_mce在/media/uploads/etc/image.jpg之前添加了一个前导../../../../
Any ideas why? I guess its some URL thats not set correct. But im not sure if its tiny_mce or filebrowser.
有什么想法吗?我想它的一些URL设置不正确。但我不确定它的tiny_mce或文件浏览器。
1 个解决方案
#1
1
TinyMCE has an option to avoid converting urls to what seems to be relative urls. You need to put the following on your configuration:
TinyMCE可以选择避免将网址转换为相对网址。您需要在配置中添加以下内容:
remove_script_host : false,
convert_urls : false,
Check out this thread: http://tinymce.moxiecode.com/punbb/viewtopic.php?id=642
看看这个主题:http://tinymce.moxiecode.com/punbb/viewtopic.php?id = 642
#1
1
TinyMCE has an option to avoid converting urls to what seems to be relative urls. You need to put the following on your configuration:
TinyMCE可以选择避免将网址转换为相对网址。您需要在配置中添加以下内容:
remove_script_host : false,
convert_urls : false,
Check out this thread: http://tinymce.moxiecode.com/punbb/viewtopic.php?id=642
看看这个主题:http://tinymce.moxiecode.com/punbb/viewtopic.php?id = 642