Having problems getting images to display within FCKEditor within ASP.NET website

寵の児 提交于 2019-12-11 08:09:45

问题


I'm having a problem with the FCKEditor html editor for ASP.NET in that when trying to insert an image within the editor and then clicking "browse server" in the Image Properties dialog I get an "page cannot be found" error. I want to get it to show all the files in the "images" folder.

The website is set up as follows:-

 \ Root
     - \ asp.net standard folders etc...
     - \ Images
     - \ FCKEditor - contains all the javascript etc..
     - Default.aspx - this contains the FCKEditor Control

I have tried setting the ImageBrowserURL to various settings such as "/images" but this doesn't seem to return the correct path to the images folder.

Any ideas ?


回答1:


I think the problem is that 'ImageBrowserUrl' doesn't point to the path where your image files reside, it points to the path where the actual file browser is located - you shouldn't have to change this setting. Make sure you have set _FileBrowserLanguage and _QuickUploadLanguage in fckconfig.js to 'aspx'.

To set the path to your image files add the following to your web.config:

  <appSettings>       
    <add key="FCKeditor:UserFilesPath" value="/images/" />
  </appSettings>

The url is relative to the website root, the default used by fckeditor is /userfiles/.

Hope this helps.




回答2:


Also check How to set configuration or server to upload image in FCKEditor based on ASP.NET to see if it answers your question.



来源:https://stackoverflow.com/questions/484951/having-problems-getting-images-to-display-within-fckeditor-within-asp-net-websit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!