MdEditorJS 1.0.3

dotnet add package MdEditorJS --version 1.0.3                
NuGet\Install-Package MdEditorJS -Version 1.0.3                
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="MdEditorJS" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MdEditorJS --version 1.0.3                
#r "nuget: MdEditorJS, 1.0.3"                
#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.
// Install MdEditorJS as a Cake Addin
#addin nuget:?package=MdEditorJS&version=1.0.3

// Install MdEditorJS as a Cake Tool
#tool nuget:?package=MdEditorJS&version=1.0.3                

用法

版本 1.0.3

1、优化加载速度
添加引用        
<script src="/_content/MdEditorJS/js/editjs/editorjs@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/checklist@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/code@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/delimiter@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/embed@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/header@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/image@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/inline-code@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/link@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/list@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/marker@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/quote.umd.min.js"></script>
<script src="/_content/MdEditorJS/js/editjs/raw@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/simple-image.js"></script>
<script src="/_content/MdEditorJS/js/editjs/table@latest.js"></script>
<script src="/_content/MdEditorJS/js/editjs/warning@latest.js"></script>

版本 1.0.2

1、修复Bug
2、参数可空

版本 1.0.1

1、添加只读功能 2、修复一些已知问题

<MdEditor @ref="mdEditor" Value="Value" IsReadOnly=true></MdEditor>

版本 1.0.0

1、实现基本功能

@using MdEditorJS
@using System.Text.Json.Nodes


<button @onclick="OnSaveChange">保存</button>

<button @onclick="SetReadOnly">设置不可编辑</button>

<MdEditor @ref="mdEditor" Value="Value"></MdEditor>

@code{
    MdEditor mdEditor;

    JsonNode Value;

    protected override void OnInitialized()
    {
        Value = JsonObject.Parse("[]");
        base.OnInitialized();
    }

    public async Task OnSaveChange()
    {
        var r = await mdEditor.OnSaveChange();
    }

    public async Task SetReadOnly()
    {
        var r = await mdEditor.SetReadOnly();
    }

}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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.3 120 7/4/2024
1.0.2 74 6/11/2024
1.0.1 69 6/11/2024
1.0.0 75 6/7/2024