ECMAScript.WangEditor 1.0.0-preview.9

This is a prerelease version of ECMAScript.WangEditor.
dotnet add package ECMAScript.WangEditor --version 1.0.0-preview.9
                    
NuGet\Install-Package ECMAScript.WangEditor -Version 1.0.0-preview.9
                    
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="ECMAScript.WangEditor" Version="1.0.0-preview.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ECMAScript.WangEditor" Version="1.0.0-preview.9" />
                    
Directory.Packages.props
<PackageReference Include="ECMAScript.WangEditor" />
                    
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 ECMAScript.WangEditor --version 1.0.0-preview.9
                    
#r "nuget: ECMAScript.WangEditor, 1.0.0-preview.9"
                    
#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 ECMAScript.WangEditor@1.0.0-preview.9
                    
#: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=ECMAScript.WangEditor&version=1.0.0-preview.9&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ECMAScript.WangEditor&version=1.0.0-preview.9&prerelease
                    
Install as a Cake Tool

ECMAScript.WangEditor

WangEditor 与其官方 Vue 3 适配器的 C# 绑定,作为 Jazor 的 JS resource library 交付:包内 锁定上游多包版本,manifest.json(schema 2)和 inventory.json 记录 npm package、入口、 完整性与许可证元数据;样式由绑定入口的 [Style] 声明。

Strongly typed C# bindings for WangEditor and its official Vue 3 adapter, shipped as a Jazor JS resource library with locked upstream package versions. Runtime files remain in npm; binding [Style] declarations carry stylesheet edges while metadata describes the package entries.

上游锁定 Upstream lock

项 值
作者入口 @wangeditor/editor-for-vue(官方 Vue 3 适配器)
版本 见 manifest.json / inventory.json
闭包包 @wangeditor/editor-for-vue(适配器)、@wangeditor/editor(编辑器核心)
许可证 MIT(核心包附带 licenses/wangeditor-editor-LICENSE;适配器包未附带 LICENSE 文件,其声明值记录在 inventory.json 的 packageLicenses)
样式 @wangeditor/editor/dist/css/style.css(由 WangEditor 入口的 [Style] 声明)
peer 依赖 vue(由 ECMAScript.Vue 资源库提供)

版本选择注意:@wangeditor/editor-for-vue 的 npm latest 是 Vue 2 版本(peer vue ^2.6.14),Jazor 必须使用 5.1.x(peer vue ^3)。生成器已锁定 5.1.12。

首期范围 First slice

  • 组件代理:WangEditorComponent(ModelValue 双向 HTML、Mode、DefaultHtml、DefaultConfig、透传属性)与 WangEditorToolbar(Editor、Mode、DefaultConfig)
  • 配置:WangEditorConfig(Placeholder 与 OnChange/OnCreated/OnDestroyed/OnFocus/OnBlur 生命周期回调)、WangEditorToolbarConfig
  • 值域:WangEditorMode(default/simple 字符串枚举)

未绑定:命令式 createEditor/createToolbar(组件已覆盖挂载/销毁与 value 绑定)、slate 内容模型、菜单/上传扩展点。

SSR 边界 SSR boundary

编辑器依赖真实 DOM、选区与剪贴板。WangEditorComponent/WangEditorToolbar 必须在浏览器生命周期内挂载;SSR 期间不得创建实例。

使用示例 Authoring

<WangEditorToolbar Editor="@editor" />
<WangEditorComponent @bind-ModelValue="@html" DefaultConfig="@config" />

再生成 Regeneration

dotnet run --file scripts/csharp/generate-wang-editor.cs -- --version 5.1.12
dotnet run --file scripts/csharp/generate-wang-editor.cs -- --source .tmp/p3c --version 5.1.12

核心版本按上游 peer 区间锁定在生成器内;生成器执行浏览器安全闸门(拒绝顶层 process.env),并在缺少 LICENSE 文件时如实记录声明值而不是伪造文本。

测试 Tests

src/ECMAScript.WangEditor.Test 覆盖 manifest/inventory 元数据、npm integrity、样式入口、上游导出 drift、组件代理契约、字符串枚举与编译器 emission。

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.0.0-preview.9 46 10/10/2026
1.0.0-preview.8 47 10/9/2026
1.0.0-preview.7 62 9/29/2026
1.0.0-preview.6 56 9/28/2026
1.0.0-preview.5 53 9/28/2026