formaui-net.AddOns.Composer.Plugins.Explorer 1.0.0-preview.27

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

Forma.AddOns.Composer.Plugins.Explorer

A FormaComposer plugin that lets an author pick one of the host's stored files and insert it. It adds Browse Files to the editor's media group, which opens FormaExplorer in the composer's dialog; a picture, video or audio file is embedded, linked or both, and any other file is linked.

It is installed beside the composer, Forma.Blazor.Composer, and brings the explorer, Forma.Blazor.Explorer, with it.

Install

dotnet add package formaui-net.AddOns.Composer.Plugins.Explorer --prerelease

Register

Add the plugin to the editor it inserts into:

using Forma.Blazor.Components.Composer;
using Forma.Blazor.Components.Composer.Plugins;
using Forma.Framework.Composer.Editing;

builder.Services.AddFormaComposer(composer => composer
    .AddRichTextEditor(editor => editor
        .TryAddDefaultFeatures()
        .AddFeaturePlugin<ExplorerPlugin, ExplorerPluginOptions>(options =>
        {
            options.AcceptedResourceKinds = "contentType:image";
            options.InsertMode = MediaInsertMode.Embed;
        })));

The dialog lists the files the host's ICatalogProvider answers, in the folders it lists, and uploads into the host's IFileStore. A press chooses a file and enters a folder, and a file activated by Enter is inserted at once. The dialog reads every folder the provider lists as it opens, a query for folders alone at every depth, one slice after another, so a provider listing many folders is read whole each time the dialog opens; a provider listing none browses the files flat:

using Forma.Framework.Catalog.Queries;
using Forma.Framework.Resources;

builder.Services.AddScoped<ICatalogProvider, MediaLibrary>();
builder.Services.AddScoped<IFileStore, UploadFolderStore>();

Forma.Framework.Catalog shows an ICatalogProvider, and Forma.Framework.Resources an IFileStore.

Options

ExplorerPluginOptions What it sets
AcceptedResourceKinds The files listed and chosen, as globs:*.jpg;*.pdf or contentType:image;video; every file when unset.
AcceptedUploadKinds The files that may be uploaded, in the same form; the listed kinds when unset.
MaxFileBytes The most bytes one uploaded file may hold; the uploader's own 10 MiB at zero, the default.
AllowUpload Whether the dialog offers upload. Defaults to true.
InsertMode Whether a file the browser can render is inserted as Embed, Link or Both. Defaults to Embed.

The dialog's strings ship in English, Spanish and Hebrew.

License

Apache License 2.0, under the repository's LICENSE.

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.27 42 12/3/2026
1.0.0-preview.26 48 12/3/2026
1.0.0-preview.25 47 12/2/2026
1.0.0-preview.24 54 12/1/2026
1.0.0-preview.23 66 11/30/2026
1.0.0-preview.22 61 11/30/2026
1.0.0-preview.21 67 11/29/2026
1.0.0-preview.20 73 11/26/2026
1.0.0-preview.19 65 11/26/2026
1.0.0-preview.18 66 11/26/2026
1.0.0-preview.17 64 11/26/2026
1.0.0-preview.16 58 11/24/2026
1.0.0-preview.15 58 11/23/2026
1.0.0-preview.14 59 11/23/2026
1.0.0-preview.13 58 11/21/2026
1.0.0-preview.12 77 11/20/2026
1.0.0-preview.11 63 11/18/2026
1.0.0-preview.10 63 11/17/2026
1.0.0-preview.9 93 11/17/2026
1.0.0-preview.8 69 11/17/2026
Loading failed

What this release changed is in Forma's changelog: https://github.com/FormaUI/Forma/blob/v1.0.0-preview.27/CHANGELOG.md