Quick Tip: allow for Javascript editing in the RadEditor provider
host posted on June 16, 2010 05:46
In the default Install of DotNetNuke you can not use JavaScript in the editor. Right after you have saved it it is deleted. This is because of a content filter set in the configfile. You can get rid of this feature as follows.
Open the config file :
Providers\HtmlEditorProviders\Telerik\Config\ConfigDefault.xml
Replace
<property name="ContentFilters">DefaultFilters</property>
with
<property name="ContentFilters">ConvertFontToSpan,ConvertToXhtml,
MakeUrlsAbsolute,FixUlBoldItalic, FixEnclosingP,
IECleanAnchors,
MozEmStrong</property>
Now save your file and refresh/restart the portal and you will be able to use JavaScript in the HTML view of the RadEditor again.