erossini / BlazorMarkdownEditor

Complete Markdown Editor component for Blazor WebAssembly and Blazor Server. Full of functionalities
https://www.puresourcecode.com/dotnet/blazor/markdown-editor-component-for-blazor/
MIT License
139 stars 20 forks source link

HideIcons is not working #38

Open sion-corn opened 3 months ago

sion-corn commented 3 months ago

I am using version 8.0.4

HideIcons is not properly hiding the icons i specify:


 <MarkdownEditor Value="@markdownValue"
                        ValueChanged="@OnMarkdownValueChanged"
                        ValueHTMLChanged="@OnMarkdownValueHTMLChanged"
                        HideIcons="@(new string[] { "code", "fullscreen", "heading", "image", "quote", "table" })"
                        Placeholder="..."
                        MaxHeight="@(MaxHeight ?? "100px")"
                        SpellChecker="@false"
                        TabSize="4" />

result: Screenshot 2024-07-26 110439

Doddzi commented 2 months ago

The name fields provided in the documentation are incorrect. Try prefixing the given names with "mde-tb-". For example:

HideIcons="@(new string[] { "mde-tb-code", "mde-tb-fullscreen", "mde-tb-heading", "mde-tb-image", "mde-tb-quote", "mde-tb-table" })"
erossini commented 1 month ago

I'll investigate this issue Enrico

sion-corn commented 1 month ago

The name fields provided in the documentation are incorrect. Try prefixing the given names with "mde-tb-". For example:

HideIcons="@(new string[] { "mde-tb-code", "mde-tb-fullscreen", "mde-tb-heading", "mde-tb-image", "mde-tb-quote", "mde-tb-table" })"

This worked for me, thanks @Doddzi