In my scenario I want to add javascript to anchor tag. I have done following steps by reading other threads but still can make it work.
Kindly can you identify the problem or is there any version issue as I am using 4.4.1.0
- Added AllowScripts property in ConfigFile.xml located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.4.1.0__1f131a624888eeed\RadControls\Editor
- Then add AllowSpecialTags="true" e.g. <radE:RadHtmlField runat="server" FieldName="RelatedLinks" AllowSpecialTags="true"></radE:RadHtmlField>
- After that when I add id to my anchor tag and add the javascript editor is not stipping out the javascript, but it looks as javascript is no executed after page is loaded. Instead it shows some thing like this just after anchor tag
<PRE id="RadEditorEncodedTag" style="DISPLAY:none"> NjcmlwdD5kb2N1bWVudC5nZXRFbGVtZW50QnlJZCgndGVzdDEnKS5vbmNsaWNrPWZ1bmN0aW9uKCl7YWxlcnQoIjEiKX08L3NjcmlwdD4=
</PRE>
I have also added javascript code below in MOSSEditorTool.js located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.4.1.0__1f131a624888eeed\RadControls\Editor\Scripts\7_2_1
Telerik.Web.UI.Editor.EncodeScriptsFilter.prototype.getHtmlContent = function(content)
{
return content;
};
Telerik.Web.UI.Editor.EncodeScriptsFilter.prototype.getDesignContent = function(content)
{
return content;
};
Kindly can you identify the problem or is there any version issue as I am using 4.4.1.0