使用的环境是:mediawiki 1.15 + FCKeditor.6.4版本使用图片上传是成功的,但是图片预览后在页面中变成了
<input height="375" width="500" type="image" src="/userfiles/image/IMG_0277.JPG"></input>
再修改相对路径和绝对路径的相关配置,上传图片后又变成了
<input type="image" height="375" width="500" src="http://LocalHost/userfiles/image/IMG_0277.JPG"></input>
直接点以上地址是可以正确浏览到图片的
http://LocalHost/userfiles/image/IMG_0277.JPG找了FCKeditor的网站,如下这条信息和我的问题是完全一样的,但是不知道如何解决的,提议也没有被接纳
Ticket #3101 (reopened Bug)Hi, when using the "Image Button" of the FCKEditor toolbar, I can upload or add an existing image in my article from the file browser. However, the minute I click "Show Preview" or "Save", the image is converted into text : <input type="image" src="/userfiles/apps_norampac.jpg" width="965" height="478"></input>. If I go to wikitext, the line has been converted to : <input type="image" height="600" width="800" src="/userfiles/Hiver.jpg"></input>It seems the tag is converted into characters.I use Mediawiki 1.13.3 with FCKEditor 2.6.4 (I think, it doesn't show up in my version page of mediawiki, just saying "FCKeditor (Version fckeditor/mw-extension $Rev$ 2008)"
http://dev.fckeditor.net/ticket/3101
<input height="375" width="500" type="image" src="/userfiles/image/IMG_0277.JPG"></input>
再修改相对路径和绝对路径的相关配置,上传图片后又变成了
<input type="image" height="375" width="500" src="http://LocalHost/userfiles/image/IMG_0277.JPG"></input>
直接点以上地址是可以正确浏览到图片的
http://LocalHost/userfiles/image/IMG_0277.JPG找了FCKeditor的网站,如下这条信息和我的问题是完全一样的,但是不知道如何解决的,提议也没有被接纳
Ticket #3101 (reopened Bug)Hi, when using the "Image Button" of the FCKEditor toolbar, I can upload or add an existing image in my article from the file browser. However, the minute I click "Show Preview" or "Save", the image is converted into text : <input type="image" src="/userfiles/apps_norampac.jpg" width="965" height="478"></input>. If I go to wikitext, the line has been converted to : <input type="image" height="600" width="800" src="/userfiles/Hiver.jpg"></input>It seems the tag is converted into characters.I use Mediawiki 1.13.3 with FCKEditor 2.6.4 (I think, it doesn't show up in my version page of mediawiki, just saying "FCKeditor (Version fckeditor/mw-extension $Rev$ 2008)"
http://dev.fckeditor.net/ticket/3101
怎么设置的:
http://wenda.tianya.cn/wenda/thread?tid=00d61047f4e8a27f&clk=wttpcts
fckeditor\editor\filemanager\connectors\php\config.php
config.php 下设置 $Config['UserFilesPath'] = '/assistant/userfiles/' ; 图片存放路径