From aa95320303cd2440f5186253c9806d475f54ad7e Mon Sep 17 00:00:00 2001 From: Mladen Macanovic Date: Wed, 4 Dec 2024 20:48:30 +0100 Subject: [PATCH] Markdown: add missing ToolbarButtonClassPrefix JS option --- Source/Extensions/Blazorise.Markdown/Markdown.razor.cs | 1 + Source/Extensions/Blazorise.Markdown/MarkdownJSOptions.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Source/Extensions/Blazorise.Markdown/Markdown.razor.cs b/Source/Extensions/Blazorise.Markdown/Markdown.razor.cs index 4cc9b66d0c..2aeb47587c 100644 --- a/Source/Extensions/Blazorise.Markdown/Markdown.razor.cs +++ b/Source/Extensions/Blazorise.Markdown/Markdown.razor.cs @@ -102,6 +102,7 @@ protected override async Task OnFirstAfterRenderAsync() Toolbar = Toolbar != null && toolbarButtons?.Count > 0 ? MarkdownActionProvider.Serialize( toolbarButtons ) : null, + ToolbarButtonClassPrefix = ToolbarButtonClassPrefix, ToolbarTips = ToolbarTips, UploadImage = UploadImage, ImageMaxSize = ImageMaxSize, diff --git a/Source/Extensions/Blazorise.Markdown/MarkdownJSOptions.cs b/Source/Extensions/Blazorise.Markdown/MarkdownJSOptions.cs index 701178164a..2ec5bf4b59 100644 --- a/Source/Extensions/Blazorise.Markdown/MarkdownJSOptions.cs +++ b/Source/Extensions/Blazorise.Markdown/MarkdownJSOptions.cs @@ -72,6 +72,11 @@ public class MarkdownJSOptions /// public IEnumerable Toolbar { get; set; } + /// + /// Gets or sets a prefix to the toolbar button classes when set. For example, a value of `"mde"` results in `"mde-bold"` for the Bold button. + /// + public string ToolbarButtonClassPrefix { get; set; } + /// /// Gets or sets a value indicating whether tooltips are shown on the toolbar. ///