uxBlazorQuillEditor 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package uxBlazorQuillEditor --version 1.0.4
                    
NuGet\Install-Package uxBlazorQuillEditor -Version 1.0.4
                    
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="uxBlazorQuillEditor" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="uxBlazorQuillEditor" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="uxBlazorQuillEditor" />
                    
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 uxBlazorQuillEditor --version 1.0.4
                    
#r "nuget: uxBlazorQuillEditor, 1.0.4"
                    
#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.
#addin nuget:?package=uxBlazorQuillEditor&version=1.0.4
                    
Install uxBlazorQuillEditor as a Cake Addin
#tool nuget:?package=uxBlazorQuillEditor&version=1.0.4
                    
Install uxBlazorQuillEditor as a Cake Tool

Blazor Quill Editor

Blazor Quill Editor Class Library

Blazor Quill Editor Features:

  • Bilder per Drag & Drop, Paste oder Dateiauswahl einfügen
  • Automatisches Resizing von Bildern beim Einfügen
  • Base64- oder File-Upload-Modus wählbar

SimpleBlog mit Blazor Quill Editor

Dies ist ein Beispielprojekt für einen einfachen Blog mit Blazor Server. Es nutzt:

Quill Editor für die Texteingabe (mit Bild-Upload / Drag & Drop / Paste Support)

API-Backend zum Speichern und Laden von Blogposts

Base64 oder File Upload

Per default ist in der quill.initialize.js die Option Base64 auf true eingestellt, so das die Bilder als Base64 eingebettet werden. Wenn ihr einen File-Upload möchtet, solltet ihr den Pfad entsprechend eurer Struktur einstellen. Der Default Pfad zeigt auf : /api/upload. Ggf. sollte auch eine Authentifizierung implementieren werden.

Usage

Kopiert die Klassenbibliothek in eurer Projekt und fügt den QuillEditor zu eurer Projektmappe und eurem Projekt hinzu.

Wenn ihr die Base64 Einstellung beibehaltet, solltet ihr die MaximumReceiveMessageSize entspechend erhöhen:

Programm.cs

builder.Services.AddServerSideBlazor()
    // Die default Receive Size ist 32KB. Das führt zu Problemen beim speichern der
    // Einträge wenn Bilder als Base64 enthalten sind!
    .AddHubOptions(options =>
    {
        options.MaximumReceiveMessageSize = 10 * 1024 * 1024; // 10 MB 
    });

Imports

@using QuillEditor

YourAdminPage.razor

<QuillEditorBox @ref="editor" MaxImageWidth="400" MaxImageHeight="400" />

MaxImageWidth und MaxImageHeight sind Optional. Hiermit wird direkt beim Einfügen die Bildgröße auf die jeweilige Maximalangabe skaliert, so dass die Images tatsächlich auch in der Dateigröße sich verkleinern.

Hinweis

Damit die Classes die Quill im HTML zurückgibt auch auf eurer Ausgabeseite übernommen werden, muss sich der HTML Content in folgender Struktur befinden:

_Host.cshtml

<link href="./_content/QuillEditor/css/quilleditor.css" rel="stylesheet" />

YourBlogPage.razor

<div class="ql-snow">
    
    <div class="ql-editor">
        
                
        @((MarkupString)post.HtmlContent)
    </div>
</div>

Verwendete Quellen und für offline Benutzung integriert:

Quill Resize Module v2.0.3

File: quill.resize.js
File: quill.resize.css

Quill Module v2.0.3

File: quill.js
File: quill.snow.css
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.  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.0.10 153 5/26/2025
1.0.8 145 5/7/2025
1.0.7 146 5/5/2025
1.0.6 117 5/2/2025
1.0.4 113 5/2/2025