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

Allow <script> tags in edited content

1 Answer 285 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Wolfgang Kamir
Top achievements
Rank 1
Wolfgang Kamir asked on 27 Jul 2014, 12:56 PM
HI dear forum members,

is it possible to allow editing and displaying <script> tags with the Kendo UI Editor? What happens is, that any <script> tag that I edit (with the HTML editor) gets replaced with a <telerik:script> tag when written to the page.

What is this behaviour supposed to do/prevent?

Of course I know that this can be a security risk, but in this case our user (CMS user) has a good reason for wanting to do this and no easy workaround...

Kind regards,
Wolfgang

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 30 Jul 2014, 05:44 AM
Hello Wolfgang,

The <script> tags are indeed not shown when the Editor is initialized mainly for security reasons. You can however, manually set the encoded value right after the initialization, as shown in this example.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Wolfgang Kamir
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or