Blazor Editor insertHTML command Exception

1 Answer 19 Views
Editor
David Tosi
Top achievements
Rank 1
David Tosi asked on 29 Mar 2022, 08:31 PM

Please see REPL: https://blazorrepl.telerik.com/wcYncXGa24oOJuTr39 or attached sample file.

await Editor.ExecuteAsync(new HtmlCommandArgs("insertHTML", "Hello", true));

Executing the above code by clicking the Insert button in the REPL throws this exception:

   Unhandled exception rendering component: _V[e] is not a function
   TypeError: _V[e] is not a function 
   ...

Any workarounds?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 31 Mar 2022, 11:30 AM | edited on 31 Mar 2022, 11:31 AM

Hi David,

Change the code as follows. Also, please notify us if you submit identical forum thread and a ticket. Thanks.

await Editor.ExecuteAsync(new HtmlCommandArgs("insertHtml", "Hello", true));

 

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.

David Tosi
Top achievements
Rank 1
commented on 31 Mar 2022, 03:32 PM

That fixed it! Thanks for updating the docs too.
Tags
Editor
Asked by
David Tosi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or