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

MOSS - Javascript removed from Edit Properties (EditForm.aspx) but works fine on the Edit Page site Action

1 Answer 34 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bikash
Top achievements
Rank 1
Bikash asked on 12 Mar 2009, 05:32 PM
Hi,

This might be repeated query but over the last week or so we have tried almost all the options that are available here as well as what has been given on the web. (Note: This is for the Page LIbrary and it works fine in the root site but fails on the sub sites. We are using the Feature of RADEditor 5.3.x)

What has us confused is that through the <scripts> tag work completely fine on the root site and can be edited on Both the Edit Page site Action and Edit Properties (EditForm.aspx) of the page library on the Root Site of the site collection. However on the Sub Sites it fails on the Edit Properties (EditForm.aspx) of the page library but allows us to paste (and it does not remove) <script> tags in the Edit Page us the Site actions. We have made the changes to replace the RichTextField with The RadHTMLField in the layouts page.

If we then go to the Edit Properties of the file in the Page Library we can see the encoded Javascript within <PRE> tags, if we try to appened any other script in the editor it is promptly stripped on saving the page.

Other issues we have noticed is that it removes Name attribute of SelectBox and the inline Javascript event (onChange) and all HTML comments. Are looking for some help here, if any of you faced similar problems please do share the same.

Thanks,

Bikash

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 17 Mar 2009, 01:48 PM
Hello Bikash,

In the following help article you can find information on enabling the use of Scripts  when using RadEditor for MOSS http://www.telerik.com/help/aspnet-ajax/scripts-in-radeditor.html . I think that you will find the article helpful.

Regarding the problem with Name attribute and HTML comments, you should know that after the content edited in the RadEditor is sent to the SharePoint server, several content filters are applied over it. These filters strip the name attribute and HTML comments. Unfortunately RadEditor has no control on these filters. You can see the HTML code that is sent to the server by toggling between Design and Html mode of the editor, but the control cannot affect the modification of the content after it is sent to the server.

I hope this helps.

All the best,
Stanimir
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Bikash
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or