Excel table copy is not working in this scenario

Hello,


Follow these steps to reproduce the bug:

1- Use the latest RTE component: v28.2.11

2- Use such an iFrameSetting:

<ejs-richtexteditor [iframeSettings]="rteIFrameSettingModel".....></ejs-richtexteditor>

public rteIFrameSettingModel: IFrameSettingsModel = { enable: true };


3- Switch to HML mode, and insert this code in the richtext (unescape the code if it's shown as escaped in the formular):

<p>line1</p><blabla>line2</blabla><p>line3</p>


4- Switch back to the WYSIWYG interface

Put the cursor after the word "line2"

Paste any excel table

--> this will not copy the table and generate this frontend error:

Uncaught TypeError: c.closest is not a function    at h.insertTempNode (ej2-richtexteditor.es5.js:7204:40)


Note that it's even worse if we don't use an iframeSettings, because the same scenario would then completely block the richtext component.


That's true when there is any custom markup like <blabla>line2</blabla> or <test>line2</test> ...


other effect: If you put the cursor after the word "line2", then press enter, and paste the excel table, then the excel table is pasted on the top of "line1".


Thanks for your support,


Yvan Blancmunier


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team March 24, 2025 11:55 AM UTC

Hi Yvan Blancmunier,



We have considered the reported issue "Script error throws when pasting an Excel table into the IFrame RichTextEditor." as a bug from our end and the fix for the issue will be included with our upcoming patch release on the mid of April 2025.

 

Now you can track the status of the reported issue through this feedback,

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

Regards,

Vinitha


Loader.
Up arrow icon