我正在使用带有 Ajax 文件管理器扩展的 TinyMCE ( http://www.phpletter.com/demo/tinymce-ajax-file-manager/ )。
一切都显示正常,但是当我通过图像按钮上传图像并将图像添加到我的 WSYIWYG 字段时,图像路径看起来像
<img src="../../../images/hero.jpg" alt="" />
我需要得到的是以下内容:
<img src="http://localhost/image/hero.jpg" alt="" />
最佳答案
您需要将tinyMCE.init中的“relative_urls : true”更改为“relative_urls : false”
tinyMCE.init({
relative_urls : false,
});
关于tinymce - Ajax 文件管理器 v Tinymce : How to change relative image url to absolute image in editor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22650440/