在 ASP.NET 网站的 FCKEditor 中显示图像时遇到问题
我在使用 ASP.NET 的 FCKEditor html 编辑器时遇到问题,因为当尝试在编辑器中插入图像,然后单击“图像属性”对话框中的“浏览服务器”时,出现“找不到页面”错误。 我想让它显示“images”文件夹中的所有文件。
该网站的设置如下:-
\ Root
- \ asp.net standard folders etc...
- \ Images
- \ FCKEditor - contains all the javascript etc..
- Default.aspx - this contains the FCKEditor Control
我尝试将 ImageBrowserURL 设置为各种设置,例如“/images”,但这似乎没有返回图像文件夹的正确路径。
有任何想法吗 ?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为问题在于“ImageBrowserUrl”并不指向图像文件所在的路径,它指向实际文件浏览器所在的路径 - 您不必更改此设置。 确保您已将 fckconfig.js 中的 _FileBrowserLanguage 和 _QuickUploadLanguage 设置为“aspx”。
要设置图像文件的路径,请将以下内容添加到 web.config 中:
url 相对于网站根目录,fckeditor 使用的默认值为 /userfiles/。
希望这可以帮助。
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:
The url is relative to the website root, the default used by fckeditor is /userfiles/.
Hope this helps.
另请检查 如何在基于ASP.NET的FCKEditor中设置配置或服务器上传图片看看是否能解答您的问题。
Also check How to set configuration or server to upload image in FCKEditor based on ASP.NET to see if it answers your question.