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

onclick event removed

1 Answer 132 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Xavier
Top achievements
Rank 1
Xavier asked on 02 Dec 2010, 10:43 AM
Hi,

We are using the trial version 5.7.3.0 for SharePoint.

We are trying to add code such as
<a href="#" onclick="functionCall()">Click here</a>
But when the page is Checked in, the onclick event is removed, and the resulting code is
<a href="#">Click here</a>

We removed the filters "RemoveScripts" and "EncodeScripts", and added AllowScripts="true" to the RadHtmlField control.

Do you have any idea on how to allow the onclick event?

Thanks in advance.

Kind regards,
Xavier Stévenne

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 06 Dec 2010, 09:32 AM
Hi Xavier,

Unfortunately, this seems to be yet another problem, caused by the MOSS content filter. When you submit the page, MOSS will validate it and automatically make changes if the content is not valid. You can verify this by trying to enter the same content with the original SharePoint rich text editor.

We have not been able to find a workaround for this behavior yet.

All the best,
Stanimir
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Xavier
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or