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

Script error while using UI for MVC

4 Answers 81 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Samir
Top achievements
Rank 2
Samir asked on 27 Jul 2016, 09:09 AM

We are getting a script error in kendo.all.js file when tried to load the below text in Kendo Editor control, this causes the remaining kendo controls to stop rendering properly.

The text has been copied from ms word and pasted to Editor control. The text is like the following, actually only the text is the only item that we copy from MS word but we are getting other formatting when we paste it to kendo editor.

 

Also attaching a screenshot of the error we are getting.

<span data-sheets-userformat="{"2":19005,"3":{"1":0},"5":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"6":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"7":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"8":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"12":0,"14":{"1":2,"2":0},"17":1}" data-sheets-value="{"1":2,"2":"REAL-TIME BUSINESS INTELLIGENCE ON THE 'PRODUCT MANAGEMENT' FUNCTION, DRIVEN BY ONGOING 360-DEGREE ENTERPRISE & STAKEHOLDER COLLABORATION:\n \u2022 ENGAGE internal employees and other key stakeholders in an ongoing 360-degree real-time feedback process that focuses onCritical Success Factors (CSFs)for the Product Management function.\n \u2022 EVALUATE the effectiveness of five key areas within the Product Management function: (1) People & Leadership, (2) Analytics & Insights, (3) Strategy & Planning, (4) Execution & Process, and (5) Performance & Results, with fully customizable 360-degree surveys.\n \u2022 LEVERAGE cutting-edge technology with Performax360 Unified Enterprise Performance Management Application Platform: Adaptive Neuro-Fuzzy Inference System, Context-Aware Intelligent Recommendation System, Stakeholder Sentiment Analysis driven by Cognitive Computing, the world's largest 'Best Practices' knowledgebase, Expert Panels comprising your Subject Matter Experts, and Real-Time Collaboration Hubs.\n \u2022 GAIN real-time, ongoing, and collaborative business intelligence on effectiveness trends within the Product Management function: identification of strengths and weaknesses, SWOT analysis, stakeholder sentiment analysis, Key Performance Indicators, and prioritized Ideas for Action.\n \u2022 VIEW & SHARE real-time assessment results through an interactive online format, or download them in PDF report or PowerPoint Presentation formats.\n \u2022 TRACK & MANAGE ongoing performance improvements within the Product Management function, by appointing a Key Person Accountable for specific action items, tracking real-time progress updates on action-plan implementation, and following task updates and real-time Gantt Charts.\n \n  "}" style="font-size:13px;font-family:arial, sans, sans-serif;font-weight:bold;">REAL-TIME BUSINESS INTELLIGENCE ON THE 'PRODUCT MANAGEMENT' FUNCTION, DRIVEN BY ONGOING 360-DEGREE ENTERPRISE & STAKEHOLDER COLLABORATION:<br />• ENGAGE internal employees and other key stakeholders in an ongoing 360-degree real-time feedback process that focuses onCritical Success Factors (CSFs)for the Product Management function.<br />• EVALUATE the effectiveness of five key areas within the Product Management function: (1) People & Leadership, (2) Analytics & Insights, (3) Strategy & Planning, (4) Execution & Process, and (5) Performance & Results, with fully customizable 360-degree surveys.<br />• LEVERAGE cutting-edge technology with Performax360 Unified Enterprise Performance Management Application Platform: Adaptive Neuro-Fuzzy Inference System, Context-Aware Intelligent Recommendation System, Stakeholder Sentiment Analysis driven by Cognitive Computing, the world's largest 'Best Practices' knowledgebase, Expert Panels comprising your Subject Matter Experts, and Real-Time Collaboration Hubs.<br />• GAIN real-time, ongoing, and collaborative business intelligence on effectiveness trends within the Product Management function: identification of strengths and weaknesses, SWOT analysis, stakeholder sentiment analysis, Key Performance Indicators, and prioritized Ideas for Action.<br />• VIEW & SHARE real-time assessment results through an interactive online format, or download them in PDF report or PowerPoint Presentation formats.<br />• TRACK & MANAGE ongoing performance improvements within the Product Management function, by appointing a Key Person Accountable for specific action items, tracking real-time progress updates on action-plan implementation, and following task updates and real-time Gantt Charts.<br /><br /></span>

4 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 28 Jul 2016, 12:04 PM

Hello Samir,

I am somehow confused how exactly this problem is reproduced. I am unaware how exactly such content is pasted from Word. And whether the error you get happens when pasting from MS Word or during some other action. 

Setting the content pasted in your message as initial text does not give me any errors and I am unable to exactly define how to reproduce the described issue. Here you are a dojo that shows the test case: http://dojo.telerik.com/EHiso.

Please elaborate more on the case and provide more details about the steps needed to reproduce the described issue. If needed, you can create your own dojo example, attach the Word file you are using or provide any other resource that might help on reproducing the issue you are experiencing. 

Regards,
Ianko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Samir
Top achievements
Rank 2
answered on 29 Jul 2016, 10:11 AM

I have created a demo in the following link.

http://dojo.telerik.com/@godwin2423/EDaBa

You can see the error in the console of your browser.

 

0
Samir
Top achievements
Rank 2
answered on 29 Jul 2016, 10:15 AM

This is an addition to the previous post. In the console you will be seeing javascript error, also you can see that the page was designed to give a telerik dropdwon after the editor control, since the editor is breaking dropdown is not rendering as kendo dropdown.

 

0
Ianko
Telerik team
answered on 02 Aug 2016, 05:04 AM

Hello Samir,

The script error is due to the values in the data-sheets-userformat and data-sheets-value attributes. The double quotes are not escaped properly plus they are not HTML encoded. 

So in order to resolve make sure to handle that properly. Here you are an example: http://dojo.telerik.com/igEnI

Regards,
Ianko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
Samir
Top achievements
Rank 2
Answers by
Ianko
Telerik team
Samir
Top achievements
Rank 2
Share this question
or