Declined
Last Updated: 31 Mar 2023 08:22 by ADMIN
Naved
Created on: 24 Mar 2023 17:42
Category: UI for Blazor
Type: Bug Report
2
HtmlCommandArgs does not insert intended html in editor

Unable to insert the html in editor using inbuilt HtmlCommandArgs feature provided by the Editor. It only inserts the first element. Tried to wrap the entire html in a div but it doesnt work.

The sample code is below. 

@page "/editor/overview"

@using Telerik.Blazor.Components.Editor

<TelerikEditor @ref="Editor" @bind-Value="@Value"
               Tools="@Tools"
               Height="880px">
    <EditorCustomTools>
        <EditorCustomTool Name="InsertField">
            <TelerikButton OnClick="@OnInsertField">Insert</TelerikButton>
        </EditorCustomTool>
    </EditorCustomTools>
</TelerikEditor>

@code{
    private TelerikEditor Editor {get;set;}
    public List<IEditorTool> Tools { get; set; } =
        new List<IEditorTool>()
        {
            new CustomTool("InsertField")
        };

    public string Value { get; set; } =
@"
<p>Hi</p><p>
<img src=""data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYMAAACVCAYAAAC6nJYgAAAgAElEQVR4nO3dXWwUZ5ov8H919Zfd7bQdLbQdaexMDF5tZnEjEETCQ6zRBvsiJhlhLsIJgYvAZAHtSAODI+3RwOCcc6Q1i3OUUQyEyQUOTrJSzG5IR9o27Ekcx4wEAdHOHEbp2Jk10Rm3h81gxwWu/qiuc9E0GNNt9/tWVVd1+/lJI01wV9UL7qqn3q/nEVRVVUEIIWRJs5ndAEIIIeajYEAIIYSCASGEEAoGhBBCQMGAEEIIKBgQQggBBQNCCCGgYEAIIQQUDAghhICCASGEEFAwIIQQAgoGhBBCQMGAEEIIKBgQQggBBQNCCCGgYEAIIQQUDAghhICCASGEEFAwIIQQAgoGhBBCQMGAEEIIALvZDbCy0ckUbsfUe/89NpmCJAOBugdjaP1yG7xuodDNI4QQ3QiqqqqLf6y0SbKK8I0UxiZTuHZDwW1Zxehkivk8gToR1T4BK/w2NNaKWOGnjhchpDgs2WAwOpnCwJdJhMcVrgd/PrxuAYFaG37813ZsWClS74EQYllLKhhEp1VcjC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tZgkOmVjHVICgNFAwIIYTQDmRCCCEUDAghhICCASGEEFAwIIQQAgoGhBBCQMGAEEIIKBgQQggBBQNCCCGgYEAIIQQUDAghhICCASGEEFAwIIQQAgoGhBBCQMGAEEIIgP8PEanw74Ql3nIAAAAASUVORK5CYII="" alt="""" contenteditable=""false"" draggable=""true"">
<img class=""ProseMirror-separator"" alt=""""><br class=""ProseMirror-trailingBreak"">
</p><p><a href=""https://www.google.com/?safe=active&amp;ssui=on"">Link</a></p><p>Phone</p>
";

    private async Task OnInsertField()
    {
        await Editor.ExecuteAsync(new 
            HtmlCommandArgs("insertHtml", 
                $"<div>{Value}</div>", true));
    }
}

1 comment
ADMIN
Dimo
Posted on: 31 Mar 2023 08:22

Hi Naved,

The boolean flag inside HtmlCommandArgs should be false in this case, because you are inserting block content.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.