V6UEditor.Core
1.10.6
See the version list below for details.
dotnet add package V6UEditor.Core --version 1.10.6
NuGet\Install-Package V6UEditor.Core -Version 1.10.6
<PackageReference Include="V6UEditor.Core" Version="1.10.6" />
<PackageVersion Include="V6UEditor.Core" Version="1.10.6" />
<PackageReference Include="V6UEditor.Core" />
paket add V6UEditor.Core --version 1.10.6
#r "nuget: V6UEditor.Core, 1.10.6"
#:package V6UEditor.Core@1.10.6
#addin nuget:?package=V6UEditor.Core&version=1.10.6
#tool nuget:?package=V6UEditor.Core&version=1.10.6
V6UEditor.Core
首先给大家安利另外一个基于UEditor写的富文本框编辑器neditor ,看起来相当不错,不过我还没有来得及尝试!最起码它是基于UEditor的,肯定不会比UEditor差。其次,他的接口没有变化,所以理论上来说,本项目的接口也可以适配到neditor中,有人已经试过了。如果在适配NEditor的过程中遇到什么问题,我也可以协助解决!
作者一直在,只是没有什么太多问题,所以版本更新较少,有ISSUE会第一时间处理,请放心使用
示例代码
使用方法
对于在.NET Core和.NET Framework中使用UEditor,分别有详细的文档,请参阅:
另外,可以参考网络上其他人写的相关文章:
安装
强烈建议从nuget安装
方式1:可以直接在Nuget中搜索V6UEditor.Core并安装
方式2:通过命令行安装
Install-Package V6UEditor.Core
Nuget地址:https://www.nuget.org/packages/V6UEditor.Core/
配置
可选配置项
在注入Service时,可以支持一些可选的配置,具体参数如下:
configFileRelativePath
后端配置文件的相对路径,默认值为ueditor.json
,即项目根目录的ueditor.json
文件,这个文件是从UEditor官方提供的.NET版本下载包中的utf8-net\net\config.json
复制过来的
isCacheConfig
是否缓存配置文件,默认值为true。当设置为不缓存时,每次都会从文件中读取配置文件;当设置为缓存时,则第一次从配置文件中读取,以后都从内存中读取
basePath
相对路径的根目录,默认值为项目的根目录,即env.ContentRootPath
。系统中的后端配置文件、各种上传的路径都是基于该地址去计算其实际地址的。
特别注意:
在修改
basePath
后,一定要注意调整后端配置文件中的imageUrlPrefix
、scrawlUrlPrefix
等等各种文件访问路径的前缀,否则可能出现文件可以上传,但是前端编辑器中总显示不出来的问题。
配置项使用方式
配置项需要在注入Service时设置,示例代码如下:
public void ConfigureServices(IServiceCollection services)
{
services.AddUEditorService(configFileRelativePath: "config.json",
isCacheConfig: false,
basePath: "C:/basepath");
services.AddMvc();
}
特别感谢
优秀的开源项目离不开大家的支持,非常感谢为以下为本项目提供好的建议或PR的朋友:
大功告成,祝你大吉大利,今晚吃鸡
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- Newtonsoft.Json (>= 11.0.1)
-
.NETStandard 2.0
- Microsoft.AspNetCore (>= 2.0.0)
- Newtonsoft.Json (>= 11.0.1)
- System.Drawing.Common (>= 4.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
升级说明:
[1.10.6] 优化动态上传目录uploads_dir替换逻辑
[1.10.5] 加入动态上传目录uploads_dir
[1.10.4] 升级提示信息《未通过身份验证》
[1.10.3] 视频、文档等附件因添加水印出错
[1.10.2] 增加判断登录认证
[1.10.1] 修复抓取远程图片水印文字bug
[1.10.0] 增加包图标
[1.0.9] 抓取远程图片,增加水印文字
[1.0.8] 增加上传图片,水印文字
[1.0.6] Fixed bug 抓取远程图片时,丢失扩展名的问题 https://github.com/baiyunchen/UEditor.Core/issues/7
[1.0.5] Fixed bug 抓取远程图片时,提示“参数错误:没有指定抓取源” https://github.com/baiyunchen/UEditor.Core/pull/5
[1.0.4] Optimize support for the.net framework.