在启用了asp.net的CKEditor图片上传 [英] Enable image upload for CKEditor at asp.net
问题描述
我用的CKEditor我的asp.net C#项目。
我怎样才能启用编辑图片上传标签。我看过找一些文章,但没有人在那里有用。他们中的一些在那里为PHP。我要为asp.net。
谢谢你的帮助。
i use CKEditor for my asp.net C# project. How can I enable image upload tab for the editor. I read find some articles but none of them where useful. some of them where for php. I want for asp.net. thank you for helping.
推荐答案
终于我能找到解决方案。
finally I could find the solution.
我做了两件事情解决我的问题。
I did two things to solve my problem.
首先,我编辑config.ascx文件,并设置基本URL图像文件夹。象下面这样:
first I edited config.ascx file and set the base url to images folder. like below:
公众覆盖无效调用setConfig()
{
public override void SetConfig() {
// The base URL used to reach files in CKFinder through the browser.
BaseUrl = "~/images/";
// The phisical directory in the server where the file will end up. If
// blank, CKFinder attempts to resolve BaseUrl.
BaseDir = "";
}
和我有错误是,我的网页是在管理文件夹,我被放在CKEditor的和ckfinder文件夹在我的网站的根目录下。
and the mistake that I had was that, my pages was at admin folder and I was put ckeditor and ckfinder folder at root of my website.
通过在管理文件夹的问题soved思想促进这些文件。
by puting these files at the admin folder the problem soved.
感谢您。
这篇关于在启用了asp.net的CKEditor图片上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!