有获取图像的问题ASP.NET网站内内FCKEditor的显示 [英] Having problems getting images to display within FCKEditor within ASP.NET website
问题描述
我在图像属性当试图插入编辑器中的图像,然后单击浏览服务器具有在该FCKEditor的HTML编辑器用于ASP.NET一个问题对话框我得到一个该页无法找到错误。我想要得到它显示在图片文件夹中的所有文件。
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
我已经尝试设置ImageBrowserURL到各种设置,如/图像,但是这似乎并没有正确的路径返回到图像文件夹。
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.
任何想法?
推荐答案
我认为问题是,ImageBrowserUrl'没有指向的路径您的影像文件所在,它指向在实际文件浏览器的路径位于 - 你不应该更改此设置。请确保您在fckconfig.js为ASPX设置_FileBrowserLanguage和_QuickUploadLanguage。
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'.
要的路径设置为您的图像文件添加以下你的web.config:
To set the path to your image files add the following to your web.config:
<appSettings>
<add key="FCKeditor:UserFilesPath" value="/images/" />
</appSettings>
URL是相对于网站根目录,通过FCKeditor的使用默认为/ userfiles /.
The url is relative to the website root, the default used by fckeditor is /userfiles/.
希望这有助于。
这篇关于有获取图像的问题ASP.NET网站内内FCKEditor的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!