VOOZH about

URL: https://www.nuget.org/packages/Xeku.Editors.Blazor/

⇱ NuGet Gallery | Xeku.Editors.Blazor 0.0.0.7




Xeku.Editors.Blazor 0.0.0.7

dotnet add package Xeku.Editors.Blazor --version 0.0.0.7
 
 
NuGet\Install-Package Xeku.Editors.Blazor -Version 0.0.0.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="Xeku.Editors.Blazor" Version="0.0.0.7" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xeku.Editors.Blazor" Version="0.0.0.7" />
 
Directory.Packages.props
<PackageReference Include="Xeku.Editors.Blazor" />
 
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 Xeku.Editors.Blazor --version 0.0.0.7
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xeku.Editors.Blazor, 0.0.0.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 Xeku.Editors.Blazor@0.0.0.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=Xeku.Editors.Blazor&version=0.0.0.7
 
Install as a Cake Addin
#tool nuget:?package=Xeku.Editors.Blazor&version=0.0.0.7
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Xeku.Editors.Blazor

Xeku.Editors.Blazor provides advanced Blazor-specific property editors for XAF applications, including rich text editing and modern UI controls.

Features

  • Tiptap Rich Text Editor: Modern WYSIWYG editor based on Tiptap 2.x.
  • Excalidraw Whiteboard: Interactive whiteboard/diagram editor based on Excalidraw.
  • Monaco Code Editor: Professional code editor with syntax highlighting for 80+ languages.
  • Reveal.js Presentation Editor: Powerful presentation authoring tool based on Reveal.js and Monaco, supporting live Markdown preview.
  • Custom Property Editors:
    • Hyperlink: Clickable links for URL/Email properties.
    • ButtonEdit: Text boxes with embedded action buttons.
    • ToggleSwitch: Modern switch UI for boolean properties.
    • EnumRadioButton: Item-based radio button groups for Enums.
  • Mermaid Diagram Viewer: Renders complex diagrams (Flowcharts, Sequence Diagrams, etc.) from string properties.
  • TreeView Enhancements: Advanced ITreeNode support with virtual scrolling and action control.

Usage Examples

1. Registering Editors

Assign the alias in your Business Object:

using Xeku.Editors.Attributes;

public class MyDemoObject : BaseObject
{
 [EditorAlias(XekuEditorAlias.HyperLink)]
 public string WebSite { get; set; }

 [EditorAlias(XekuEditorAlias.ToggleSwitch)]
 public bool IsActive { get; set; }

 [EditorAlias(XekuEditorAlias.EnumRadioButton)]
 public MyStatus Status { get; set; }

 // Monaco code editor for scripts
 [EditorAlias(XekuEditorAlias.Monaco)]
 [Size(SizeAttribute.Unlimited)]
 public string ScriptContent { get; set; }

 // Button edit for custom actions
 [EditorAlias(XekuEditorAlias.ButtonEditor)]
 public string CustomActionField { get; set; }

 // Reveal.js presentation editor (with live Markdown preview)
 [EditorAlias(XekuEditorAlias.Reveal)]
 [Size(SizeAttribute.Unlimited)]
 public string PresentationContent { get; set; }

 // Mermaid diagram viewer
 [EditorAlias(XekuEditorAlias.Mermaid)]
 [Size(SizeAttribute.Unlimited)]
 public string DiagramDefinition { get; set; }

 // Excalidraw whiteboard editor
 [EditorAlias(XekuEditorAlias.Excalidraw)]
 [Size(SizeAttribute.Unlimited)]
 [ModelDefault("RowCount", "40")] // Height = 40 * 20 = 800px
 public string WhiteboardData { get; set; }
}

2. Handling Button Clicks

Subscribe to events in a Blazor Controller:

using Xeku.Editors.Blazor.PropertyEditors;

public class MyButtonController : ObjectViewController<DetailView, MyDemoObject>
{
 protected override void OnActivated()
 {
 base.OnActivated();
 View.CustomizeViewItemControl<ButtonEditPropertyEditor>(this, (editor) => {
 editor.ButtonClicked += (s, propertyName) => {
 // Your custom logic here
 Application.ShowViewStrategy.ShowMessage($"Button clicked on {propertyName}!");
 };
 });
 }
}

AI Agent Integration

Use Cases

  • Content Generation: AI Agents can directly interact with the Tiptap editor to generate, refactor, or summarize rich text content.
  • UI State Debugging: Agents can inspect the ComponentModel state to diagnose rendering issues.

System Architecture

graph TD
 subgraph UI ["#e1f5ff Blazor Presentation"]
 Renderer["Razor Renderers"]
 Adapter["XAF Component Adapters"]
 Model["Component Models"]
 end

 subgraph Logic ["#fff4e1 XAF Integration"]
 PropEditor["PropertyEditors"]
 Module["EditorsBlazorModule"]
 end

 subgraph External ["#f3e5f5 External Libs"]
 Tiptap["Tiptap JS"]
 Monaco["Monaco Editor (BlazorMonaco)"]
 Reveal["Reveal.js 5.0 (Vite Bundle)"]
 end

 PropEditor --> Adapter
 Adapter --> Model
 Model --> Renderer
 Renderer -.-> Tiptap
 Module --> PropEditor

 style UI fill:#e1f5ff,stroke:#005cbf
 style Logic fill:#fff4e1,stroke:#d39e00
 style External fill:#f3e5f5,stroke:#6f42c1

Installation

dotnet add package Xeku.Editors.Blazor

Frontend Build

This module uses Vite to bundle frontend assets:

npm install
npm run build

Monaco Editor Setup

Since Monaco Editor relies on global scripts, you must add the following references to your Blazor Server _Host.cshtml or Blazor WebAssembly index.html file:

<script src="_content/BlazorMonaco/jsInterop.js"></script>
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"></script>
<script src="_content/Blazorade.Mermaid/blazorade-mermaid.js"></script>

Mermaid Editor Setup

This editor relies on Blazorade.Mermaid. The library handles JavaScript module loading automatically. However, ensure that static assets are correctly served in your application. No manual <script> tags are typically needed for Mermaid 2.x when using it as a module, but if you encounter loading issues, you can try adding:

<script src="_content/Blazorade.Mermaid/blazorade-mermaid.js"></script>
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (2)

Showing the top 2 NuGet packages that depend on Xeku.Editors.Blazor:

Package Downloads
Xeku.Announcement.Blazor

Announcement module for Xeku system (Blazor).

Xeku.Scripts.Blazor

Xeku Scripts Blazor module for DevExpress XAF Blazor applications. Enables Monaco editor support for script editing.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0.7 208 1/28/2026
0.0.0.6 142 1/21/2026
0.0.0.5 125 1/15/2026
0.0.0.4 134 1/13/2026
0.0.0.3 131 1/9/2026
0.0.0.2 141 1/8/2026