This is a migrated thread and some comments may be shown as answers.

Copy and Paste into Editor Not Working

3 Answers 221 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Iron
Iron
Iron
Mark asked on 29 Oct 2018, 02:08 PM

I am getting the following error when I try and copy and paste into Editor. I am using 2018.3.910

 

Uncaught TypeError: Cannot read property 'cleanUp' of undefined
    at c.RadEditor._cleanUpAfterDelete (telerik.web.ui.webresource.axd?_TSM_HiddenField_=RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac7c66246-7597-47ee-87ae-ac254004a457%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2018.3.910.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af82d27b2-2e24-4637-ab87-c64fb8588ccb%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a874f8ea2%3a63b115ed%3a1569bb5f%3a4877f69a%3ac128760b%3a92fe8ea0%3afa31b949%3a3856fd9f%3a33715776%3adc7e0bd%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:14741)
    at c.RadEditor._onKeyUp (telerik.web.ui.webresource.axd?_TSM_HiddenField_=RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac7c66246-7597-47ee-87ae-ac254004a457%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2018.3.910.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af82d27b2-2e24-4637-ab87-c64fb8588ccb%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a874f8ea2%3a63b115ed%3a1569bb5f%3a4877f69a%3ac128760b%3a92fe8ea0%3afa31b949%3a3856fd9f%3a33715776%3adc7e0bd%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:14889)
    at HTMLDivElement.<anonymous> (telerik.web.ui.webresource.axd?_TSM_HiddenField_=RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac7c66246-7597-47ee-87ae-ac254004a457%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2018.3.910.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af82d27b2-2e24-4637-ab87-c64fb8588ccb%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a874f8ea2%3a63b115ed%3a1569bb5f%3a4877f69a%3ac128760b%3a92fe8ea0%3afa31b949%3a3856fd9f%3a33715776%3adc7e0bd%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6)

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Oct 2018, 03:41 PM
Hi Mark,

We are not aware of this error and will need your help to reproduce it.

Do you get this error in a specific browser or in all browsers?
Are you able to reproduce the problem in the live demos of RadEditor?
Does the problem happen if setting the StripFormattingOptions property of RadEditor to NoneSupressCleanMessage?
Can you also disable the AJAX to see the real error message - see Get more descriptive errors by disabling AJAX.

Thank you!

Best regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mark
Top achievements
Rank 2
Iron
Iron
Iron
answered on 30 Oct 2018, 03:19 PM

It was in all browsers. The live demo works fine.No Ajax being used on the page.

 

I set to StripFormattingOptions="NoneSupressCleanMessage". Now it is working. Any idea why that simple change makes a difference?

0
Rumen
Telerik team
answered on 30 Oct 2018, 03:32 PM
Hello Mark,

When the StripFormattingOptions is set to "NoneSupressCleanMessage", RadEditor does not take any action of stripping the formatting of the pasted content from the clipboard. You can find more information at RadEditor and the Browser Clipboard.

It looks like the pasted content contain something that breaks the cleanUp functionality in your version of RadEditor. If this is an important feature for you, my advice is to migrate to the latest R1 2018 version (2019.3.910) and test it.

If the problem still persists, please open a support ticket and provide steps along with content to replicate the issue on our end. Thank you!

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Mark
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Rumen
Telerik team
Mark
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or