V6UEditor.Core 1.10.7

dotnet add package V6UEditor.Core --version 1.10.7
                    
NuGet\Install-Package V6UEditor.Core -Version 1.10.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="V6UEditor.Core" Version="1.10.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="V6UEditor.Core" Version="1.10.7" />
                    
Directory.Packages.props
<PackageReference Include="V6UEditor.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add V6UEditor.Core --version 1.10.7
                    
#r "nuget: V6UEditor.Core, 1.10.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package V6UEditor.Core@1.10.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=V6UEditor.Core&version=1.10.7
                    
Install as a Cake Addin
#tool nuget:?package=V6UEditor.Core&version=1.10.7
                    
Install as a Cake Tool

V6UEditor.Core

GitHub license 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后,一定要注意调整后端配置文件中的imageUrlPrefixscrawlUrlPrefix等等各种文件访问路径的前缀,否则可能出现文件可以上传,但是前端编辑器中总显示不出来的问题。

配置项使用方式

配置项需要在注入Service时设置,示例代码如下:

public void ConfigureServices(IServiceCollection services)
{
   services.AddUEditorService(configFileRelativePath: "config.json",
       isCacheConfig: false,
       basePath: "C:/basepath");
   services.AddMvc();
}

特别感谢

优秀的开源项目离不开大家的支持,非常感谢为以下为本项目提供好的建议或PR的朋友:

大功告成,祝你大吉大利,今晚吃鸡

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.10.7 172 6/29/2025
1.10.6 84 6/28/2025
1.10.5 85 6/28/2025
1.10.4 260 8/29/2023
1.10.3 590 6/10/2022
1.10.2 768 1/5/2020
1.10.1 582 12/17/2019
1.10.0 565 12/15/2019
1.0.9 569 12/15/2019
1.0.8 591 12/14/2019
1.0.7 585 12/14/2019

升级说明:
[1.10.7] 升级到.NET6,并适配Linux
[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] 增加包图标