Hi
I have a Blazor Server .Net 8 web app. Im running:
<PackageReference Include="Syncfusion.Blazor" Version="26.1.41" />
When the editor has over 20,000 (approx) characters in the editor the .razor page seems to disconnect for a few seconds. I get the standard Blazor "Attempting to reconnect to server attempt 1 of 8". It lasts for a few seconds. Any idea why this happens, it seems to be due to the SfRichTextEditor. I have created a simple page with just this control and can replicate. My code is below. Any idea how can stop the dropping of the connection. The _scopeOfWork string is populated on page initialise
<SfRichTextEditor ID="txtScopeOfWork" @bind-value="_scopeOfWork">
<RichTextEditorToolbarSettings Items="@Tools" />
</SfRichTextEditor>
private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
{
new ToolbarItemModel() { Command = ToolbarCommand.Bold },
new ToolbarItemModel() { Command = ToolbarCommand.OrderedList },
new ToolbarItemModel() { Command = ToolbarCommand.UnorderedList },
new ToolbarItemModel() { Command = ToolbarCommand.SourceCode },
new ToolbarItemModel() { Command = ToolbarCommand.Undo },
new ToolbarItemModel() { Command = ToolbarCommand.Redo }
};
builder.Services.AddSignalR(option => { option.MaximumReceiveMessageSize = 100 * 1024; }); |
Great, thanks for that it worked a treat
HI
Im getting the "attempting to reconnect page" again. It happens when the user has data in the clipboard. To replicate try the following:
1) Add about a 20,000 characters of text to the Editor.
2) Save the response back to the object/database
3) Reload the text editor with all its content, SELECT all the text in the Editors and COPY it
4) Then PAST the text that was just copied below the original text - so you have duplicated the text
5) Then try and SAVE the object to the database. You will get "attempting to reconnect" screen for a few seconds
Let me know if you need more information
builder.Services.AddSignalR(option => { option.MaximumReceiveMessageSize = 200 * 1024; }); |
Is it possible per page/component rather for whole application?