Looking for the v10 manual? Visit our new user's guide!
 
Search Descriptions Version
 
 
This article applies to: ML8, MultiStore

Scripts in descriptions are not saved


Symptoms 
When entering HTML into a description (topic, product, etc), the script disappears when you save the entry.

Cause 
The RadEditor does not allow scripts by default. 

Solution 
To fix this, you must enable scripts in the RadEditor. 

For version 8: Open the RadControls\Editor\ConfigFile.xml file, and set the property for AllowScripts to "true".  Search for... 

    <property name="AllowScripts">false</property>

...and change it to to:

    <property name="AllowScripts">true</property>

For versions 9.0.1.2 - 9.1.0.1: Open the file that the RadEditor is being used on (for example Admin/topics.aspx, Admin/entityEditProducts.aspx, etc) and find this line:

     <tcontrol:RadEditor runat="server" RadControlsDir="rad" id="radDescription">

...and add the AllowScripts="true" attribute:

     <tcontrol:RadEditor runat="server" AllowScripts="true" RadControlsDir="rad" id="radDescription">

For version 9.2.0.0 and higher: Open the file that the RadEditor is being used on (for example Admin/Controls/TopicEditor.ascx, Admin/entityEditProducts.aspx, etc) and find this line:

     <tcontrol:RadEditor runat="server" RadControlsDir="rad" id="radDescription">

...and add the AllowScripts="true" attribute:

     <tcontrol:RadEditor runat="server" AllowScripts="true" RadControlsDir="rad" id="radDescription">