使用的环境是: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 : &lt;input type="image" height="600" width="800" src="/userfiles/Hiver.jpg"&gt;&lt;/input&gt;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

解决方案 »

  1.   

    可能各个环境不一样,必须要自己手动设置路径吧
    怎么设置的:
    http://wenda.tianya.cn/wenda/thread?tid=00d61047f4e8a27f&clk=wttpcts
      

  2.   

    這是相對路徑的問題了,你當前的FCKeditor和上傳文件的路徑之間的關係不對
      

  3.   

    1,上传路径在 fck 上也是可以设置的,看看路径有没有问题2,如果是 linux 系统,可能是权限问题3,建议图片上传可以自己再写一个
      

  4.   


    fckeditor\editor\filemanager\connectors\php\config.php
    config.php 下设置   $Config['UserFilesPath'] = '/assistant/userfiles/' ;  图片存放路径