Completed
Last Updated: 06 Feb 2019 10:22 by ADMIN
Eric
Created on: 18 Jan 2019 08:03
Category: Editor
Type: Bug Report
0
z.push is not a function JS error - RadEditor WordListConverter convert method bug

There's a bug in the RadEditor WordListConverter convert method.  See the attached image for details.  Note that the variable z is initialized and treated as an array (a stack, actually, with its items being pushed in and popped out).  However, perhaps because of a naming scope failure in the js-minifier, the z variable is, under certain conditions, set equal to an HTMLCollection, so a subsequent z.push method call fails.

This sample Word document reproduces the error.  It is admittedly full of bad list formatting, because it began life as a PDF, but it does exercise the RadEditor code in a way that causes the problem.  Select and copy its content and paste it in the RadEditor demo page here:

https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

Click OK to "clean" the pasted content and note that nothing appears because of the error shown in the attached image.

Verified in the latest Chrome and FF builds on Windows 10.

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
4 comments
ADMIN
Rumen
Posted on: 06 Feb 2019 10:22
I am also attaching a simplified version of the content which reproduces the issue.

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.
Attached Files:
ADMIN
Rumen
Posted on: 06 Feb 2019 10:20
You are welcome, Eric!

What you can do in Sitefinity is to locate the RadEditor related field and its StripFormattingOptions property and remove from the default values "MSWordRemoveAll, Css, Font, Span, ConvertWordLists" the ConvertWordLists option, which is causing the problem.

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.
Eric
Posted on: 25 Jan 2019 17:31

Rumen, thanks.  Glad you were able to fix it.

I discovered it in a Sitefinity system, where this component is used for HTML content editing in the admin interface.  Unfortunately, the RadEditor code is embedded in a Sitefinity resource DLL so it'll be some time (and a few versions) before we're able to benefit from it.

Thanks for the points!

ADMIN
Rumen
Posted on: 25 Jan 2019 11:11
Hi Eric,

Thank you for reporting this bug and the detailed information you provided! Much appreciated.

The problem was recognized and that's why I directly converted the forum post to a bug report portal item.

I have good news that we fixed it and it won't exist in the next version of the control.

As a small note of gratitude for your bug report, I updated your Telerik points.


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.