Hello,
I have to use the currente Version 17.2.0.49 but when using a RichTextBox, I get this exception:
Microsoft.AspNetCore.Components.Web.Rendering.RemoteRenderer[100]
Unhandled exception rendering component: TypeError: Unable to get property 'ownerDocument' of undefined or null reference
Microsoft.AspNetCore.Components.Web.Rendering.RemoteRendererException: TypeError: Unable to get property 'ownerDocument' of undefined or null reference
at Microsoft.AspNetCore.Components.Rendering.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
warn: Microsoft.AspNetCore.Components.Server.ComponentHub[3]
Unhandled exception in circuit CfDJ8G3xCA9Aj2ZPnDUWgg8hsEP8MRPi70A4g1V3EIEXz5Kft3SgBnuukZ0tLSw_Yqodsgoy7XqVcVsU1gaTInutwQtrVAvTW-G7itUNtaFhoxE8ZzoWfQDhJ_HPELzfhuOTlWy-cfW4aoOozdz2oIIi0hFAzSjAdaAnYF2w_2JimNnp
System.AggregateException: One or more errors occurred. (TypeError: Unable to get property 'ownerDocument' of undefined or null reference)
---> Microsoft.AspNetCore.Components.Web.Rendering.RemoteRendererException: TypeError: Unable to get property 'ownerDocument' of undefined or null reference
at Microsoft.AspNetCore.Components.Rendering.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
--- End of inner exception stack trace ---
Using Syncfusion.EJ2.WordEditor.Blazor (17.2.0.46-beta) it's working - using Syncfusion.EJ2.Blazor (17.2.0.49-beta) it does not.
This is the code:
@page "/"
@using Syncfusion.EJ2.Blazor.RichTextEditor;
<h1>Hello, world!</h1>
Welcome to your new app.
<EjsRichTextEditor Placeholder="Message EN">
<ChildContent>
<p>@Message</p>
<RichTextEditorToolbarSettings Items="@Tools"></RichTextEditorToolbarSettings>
</ChildContent>
</EjsRichTextEditor>
@code
{
public object[] Tools = new object[]{
"Bold", "Italic", "Underline", "StrikeThrough",
"FontName", "FontSize", "FontColor", "BackgroundColor",
"LowerCase", "UpperCase", "|",
"Formats", "Alignments", "OrderedList", "UnorderedList",
"Outdent", "Indent", "|",
"CreateTable", "CreateLink", "Image", "|", "ClearFormat", "Print",
"SourceCode", "|", "Undo", "Redo"
};
public string Message { get; set; }
}
Is there something broken again?