Skip to content

Commit

Permalink
Markdown: add missing ToolbarButtonClassPrefix JS option
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Dec 4, 2024
1 parent 49d3aa2 commit aa95320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Extensions/Blazorise.Markdown/Markdown.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions Source/Extensions/Blazorise.Markdown/MarkdownJSOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public class MarkdownJSOptions
/// </summary>
public IEnumerable<object> Toolbar { get; set; }

/// <summary>
/// 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.
/// </summary>
public string ToolbarButtonClassPrefix { get; set; }

/// <summary>
/// Gets or sets a value indicating whether tooltips are shown on the toolbar.
/// </summary>
Expand Down

0 comments on commit aa95320

Please sign in to comment.