小编use*_*393的帖子

TinyMCE为图片网址添加额外的斜杠

我正在为一个客户建立的新网站上测试tinyMCE.

这是编辑器的测试页面......

http://simplicity.s462.sureserver.com/editor.php

我遇到的问题是当我进行图像插入并选择其中一个图像时,tinyMCE会在图像网址上添加一个额外的斜杠.结果,找不到图像.当我手动删除额外的斜杠时,会找到图像.

如何防止tinyMCE添加这些额外的斜杠?我确信有一个简单的答案,但我一直在寻找几个小时,我没有找到答案的运气.我究竟做错了什么??

以下是用于填充图像列表的PHP代码:

<?php // this must be the very first line in your PHP file! 

// You can't simply echo everything right away because we need to set some headers first! 
$output = ''; // Here we buffer the JavaScript code we want to send to the browser. 
$delimiter = ""; // for eye candy... code gets new lines 

$output .= 'var tinyMCEImageList = new Array('; 

$directory = "../../images"; // Use your correct (relative!) path here …
Run Code Online (Sandbox Code Playgroud)

html php tinymce

3
推荐指数
2
解决办法
4657
查看次数

标签 统计

html ×1

php ×1

tinymce ×1