dotnetcore ueditor


dotnetcore ueditor

 https://github.com/durow/ueditornetcore

http://www.cnblogs.com/durow/p/6116393.html

1、在 http://ueditor.baidu.com/website/download.html 下载ueditor 压缩包;

2、解压后, 把net目录(.net服务器端源码)和index.html删除后,把其余内容copy至aspnetcore项目的/wwwroot/lib/ueditor 目录下;
3、在/wwwroot目录下建upload/image目录(也可不建,程序应该可以自动建);
4、安装UEditorNetCore Install-Package UEditorNetCore
5、在Startup.cs的ConfigureServices方法中添加UEditorNetCore服务 public void ConfigureServices(IServiceCollection services)
{  
//第一个参数为配置文件路径,默认为项目目录下config.json  
 //第二个参数为是否缓存配置文件,默认false  
services.AddUEditorService()  
services.AddMvc();
}
6、在controller 目录中添加用于处理来自UEditor请求的Controller https://github.com/durow/UEditorNetCore
UEditor代码:https://github.com/fex-team/ueditor  
UEditor官网:http://ueditor.baidu.com/website/index.html