We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issue with pasting in the RICH text editor : Javascript ej2 es5

Hi. I have an issue in pasting in the richtext editor and the scenario is as follows:

There three textareas in different tabs.

Not able to paste content into the textarea unless I type something before using paste or ctrl+v to paste into the richtext editor. 


Also getting a console error saying.

Uncaught TypeError: Cannot read properties of undefined (reading 'tagName')

    at e.Insert (ej2.min.js:10:9997605)

    at e.applyHtml (ej2.min.js:10:10062050)

    at e.notify (ej2.min.js:10:737776)

    at e.execCommand (ej2.min.js:10:10091576)

    at e.formatting (ej2.min.js:10:10146761)

    at e.pasteClean (ej2.min.js:10:10136323)

    at e.notify (ej2.min.js:10:737776)

    at t.notify (ej2.min.js:10:779092)

    at e.<anonymous> (ej2.min.js:10:10326504)

    at e.notify (ej2.min.js:10:737590)


The same is happening among all the textareas being used.

Also, If ever typed in one of the textareas I am able to paste the data into other textareas.

Kindly help me on resolving the same.

Any suggestions or resolution would be greatly appreciated.

1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team April 24, 2023 02:04 PM UTC

Hi Anush,

We have checked your reported query. But we were unable to replicate your problem on our end. Please find below a sample for your reference.


Sample https://stackblitz.com/edit/1yqtah-o38jz7?file=index.js,index.html,package.json

Could you please provide the following information so that we can replicate your issue at our end?

  • Please share your code or a runnable sample.
  • Can you please share your Syncfusion package version?
  • Could you please share a video demonstrating the issue?
  • If possible, could you modify our sample to reflect your issue?



Live Chat Icon For mobile
Up arrow icon