Paste issue from Excel table
Hi.
While trying to paste a large Excel table into the editor, the content does appear in the editor, but the binding value does not get updated.
in my use case, I'm binding the value to an object, and when trying to save it, it is blank.
when I paste only few lines, it does work.
This can also be repro in your samples page.
open the sample for 'export to pdf'
https://blazor.syncfusion.com/demos/rich-text-editor/export-word?theme=fluent2
and try to paste the attached Excel file inner table.
when you will try to perform the 'export to pdf', the created PDF will be blanked.
| 0 |
Attachment: excel_export_sample_5b65d54d.xlsx
We are glad to announce that our Essential Studio® 2025 Volume SP 2 Release v31.2.12 is rolled out and is available for download under the following link.
Hi. we have tried to update the DLLs and attempt to paste the Excel again but it did not work.
the paste from Excel into the rich text editor fails to set the control
I've checked the samples site, and the 'paste' action does work now, however, the my actual behavior is not exactly that, I've just used this sample to show the issue.
I'm using rich text editor that is bind to a property.
when the submit is done, the value 'set' is expected to be called, and it does. however, once I paste large table from Excel it is not being called.
It is important to note that everything works just fine when creating tables, and adding text, but when pasting a large table from Excel (see OP excel sample), the bind does not occur when submiting
This is the relevant part - a dialog with 2 rich text editors:
<SfDialog Width="900px" IsModal="true" ShowCloseIcon="true"
@bind-Visible="@showEditDialog">
<DialogTemplates>
<Header>
<h3>Edit @editToolConfigContext.ToolId Configuration</h3>
</Header>
<Content>
<EditForm Model=@editToolConfigContext OnValidSubmit="HandleEditSubmit">
<div class="mb-2">
<label class="p-1 m-1 bg-ht-primary text-white fw-bold">Configuration</label>
<div class="d-flex editor-config">
<SfRichTextEditor EnterKey="EnterKeyTag.P"
EnableTabKey="true"
Width="100%"
EnableXhtml="true"
Height="100%"
EnableHtmlSanitizer="true"
AutoSaveOnIdle="false"
@bind-value="editToolConfigContext.ToolConfig">
<RichTextEditorToolbarSettings Items="@HTDashboardDataSource.EditModeTools">
</RichTextEditorToolbarSettings>
</SfRichTextEditor>
</div>
</div>
<div class="mb-2">
<label class="p-1 m-1 bg-ht-primary text-white fw-bold">Tool Limitation</label>
<div class="d-flex editor-limitation">
<SfRichTextEditor EnterKey="EnterKeyTag.P"
EnableTabKey="true"
CssClass="inner-page-hero"
Width="100%"
Height="100%"
@bind-Value="editToolConfigContext.Limitation">
<RichTextEditorToolbarSettings Items="@HTDashboardDataSource.EditModeTools">
</RichTextEditorToolbarSettings>
</SfRichTextEditor>
</div>
</div>
<div class="mb-2 d-flex justify-content-end">
<SfButton CssClass="e-flat my-3" title="Update" IsPrimary="true" type="submit"
IconCss="e-icons smallIcon e-check-large">Update</SfButton>
<SfButton CssClass="e-flat my-3" title="Cancel" @onclick="() => showEditDialog = false"
IconCss="e-icons smallIcon e-close">Cancel</SfButton>
</div>
</EditForm>
</Content>
</DialogTemplates>
<DialogEvents OnClose="() => { showEditDialog = false; }"></DialogEvents>
<DialogAnimationSettings Effect="DialogEffect.FadeZoom" />
</SfDialog>
and the data context object:
public class HTConfigContext
{
public string ToolId { get; set; }
public string ToolConfig
{
get;
set;
} = "";
public string Limitation { get; set; } = "";
}
Hi Eli Gazit,
using Microsoft.AspNetCore.SignalR; builder.Services.Configure<HubOptions>(o => o.MaximumReceiveMessageSize = 1024 * 1024); |
- 5 Replies
- 2 Participants
-
EG Eli Gazit
- Nov 4, 2025 03:13 PM UTC
- Dec 9, 2025 05:14 AM UTC