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

Problem with RadEditorSharePoint

4 Answers 116 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Soudamini Khadanga
Top achievements
Rank 1
Soudamini Khadanga asked on 20 Jul 2011, 08:51 AM

RadEditorSharePoint 5.8.6.0

 

Removing script tag new version

<div id="mboxCreate"></div><script type="text/javascript">mboxCreate('mboxCreate','enuk_create')</script>

 

Now, when I save, only the bold part gets saved. <script tag is getting removed>

Our customer ID is JT359876

 

4 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 20 Jul 2011, 01:37 PM
Hi Soudamini,

Could you please provide me with a little bit more information about the problem. First send me the web.config file of your MOSS site and configuration files of RadEditor for MOSS. ConfigFile.xml, ListConfigFile.xml, ToolsFile.xml, ListToolsFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder. Second confirm in what scenario you are experiencing the issue. Is it WCM, web part, or list scenario? Third provide me with a step by step scenario of how to reproduce the problem on our side.

All the best,
Stanimir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Haseeb
Top achievements
Rank 1
answered on 20 Jul 2011, 09:16 PM

Following are the extra information onbehalf soudamini
Config File

<configuration>  
<
property name="AllowThumbGeneration">True</property>
<
property name="ConvertToXhtml">True</property>
<
property name="EnableDocking">False</property>
<
property name="ShowHtmlMode">True</property>
<
property name="ShowPreviewMode">False</property>
<
property name="ToolbarMode">Default</property>
<
property name="ToolsWidth">800px</property>
<
property name="ToolsFile">~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/Standard.xml</property>
<
property name="Skin">Telerik</property>   
<
property name="OnClientLoad"></property>  
 <
property name="OnClientPasteHtml">OnRadEditorClientPasteHtml
</property>   <property name="AllowScripts">True</property>   
<
property name="ContentFilters">MakeUrlsAbsolute,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml</property>
</configuration>

RadControl in WCM scenario (Field Control)
<
telerik:MOSSRadEditor
 ToolsFile="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/Standard.xml"        
ConfigFile="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/ConfigFile.xml"         
runat="server"          
ID="RadEditorInternal"          
CSSFiles = "~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/DelphiCustom.css"         
AllowScripts="True" 
AllowExternalUrls="True"  
UseEmbeddedScripts="true"   />

 
<root>   
    <
modules>     
        <
module name="RadEditorDomInspector" />   
        </
modules>   <tools name="MossTools1">     
        <
tool name="AjaxSpellCheck" />     
        <
tool name="FindAndReplace" />     
        <
tool separator="true" />     
        <
tool name="Cut" shortcut="CTRL+X" />     
        <
tool name="Copy" shortcut="CTRL+C" />     
        <
tool name="Paste" shortcut="CTRL+V" />     
        <
tool separator="true" />     
        <
tool name="Undo" shortcut="CTRL+Z" />     
        <
tool name="Redo" shortcut="CTRL+Y" />     
        <
tool separator="true" />     
        <
tool name="MOSSLinkManager" shortcut="CTRL+K" />     
        <
tool name="Unlink" shortcut="CTRL+SHIFT+K" />     
        <
tool name="MOSSImageManager" shortcut="CTRL+G" />     
        <
tool name="MOSSTemplateManager" />    
         <
tool separator="true" />     
        <
tool name="MOSSInsertTable" />     
        <
tool name="SetTableProperties" />     
        <
tool name="ToggleTableBorder" />     
        <
tool separator="true" />     
        <
tool name="MOSSInsertTableElement">       
        <
tool name="InsertRowAbove" />       
        <
tool name="InsertRowBelow" />       
        <
tool name="InsertColumnLeft" />       
        <
tool name="InsertColumnRight" />       
        <
tool name="DeleteRow" />       
        <
tool name="DeleteColumn" />       
        <
tool name="SplitCell" />     
    </
tool>     
    <
tool name="MergeColumns" />     
    <
tool separator="true" />     
    <
tool name="ToggleSource" />     
    <
tool name="FormatStripper" />     
    <
tool separator="true" />     
    <
tool name="MOSSRightToLeft" />     
    <
tool name="MOSSLeftToRight" />     
    <
tool name="InsertHorizontalRule" />     
    <
tool separator="true" />     
    </tools>   
    <
tools name="MossTools2">     
    <
tool name="ApplyClass" />     
    <
tool name="FormatBlock" />     
    <
tool separator="true" />     
    <tool separator="true" />     
    <
tool name="Bold" shortcut="CTRL+B" />     
    <
tool name="Italic" shortcut="CTRL+I" />     
    <
tool name="Underline" shortcut="CTRL+U" />     
    <
tool separator="true" />     
    <
tool name="JustifyLeft" />     
    <
tool name="JustifyCenter" />     
    <
tool name="JustifyRight" />     
    <
tool separator="true" />     
    <
tool name="InsertOrderedList" />     
    <
tool name="InsertUnorderedList" />     
    <
tool separator="true" />     
    <
tool name="Indent" />     
    <
tool name="Outdent" />     
    <
tool name="Subscript" />     
    <
tool name="InsertSymbol" />     
    <
tool name="DellFlashPicker" iconurl="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/flash.png"/>     
    <
tool name="DellVideoPicker" iconurl="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/movie.png"/>     
    <
tool name="DellBirdSeedPicker" iconurl="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/bird.png"/>     
    <
tool name="XinetSearch" iconurl="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/xinet_logo_sm.gif"/>     
    <
tool name="DellMicroContent" iconurl="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/stringtable.png"/>     
    <
tool name="InlineMarkup" iconurl="~/_wpresources/Dell.SharePoint.Fields/1.0.0.0__9f4da00116c38ec5/inlinemarkup.png"/>   
</
tools>   <
contextMenus>     
<
contextMenu forElement="*">       
<
tool name="Cut"/>       
<
tool name="Copy"/>       
<
tool name="Paste"/>    
 </
contextMenu>   
</
contextMenus>
</root>
0
Haseeb
Top achievements
Rank 1
answered on 20 Jul 2011, 09:22 PM
Following text we could enter in the rad control.
"TestData <div id="mboxCreate"></div><script type="text/javascript">mboxCreate('mboxCreate','enuk_create')</script>"

But if i remove the initial word "TestData" and just add only the script tag like following, then it strip of the script.

"<div id="mboxCreate"></div><script type="text/javascript">mboxCreate('mboxCreate','enuk_create')</script>"

Seems to be it required atleast one character other than script tag should be in the Text area.
Please let us know if u need any more information.
0
Stanimir
Telerik team
answered on 25 Jul 2011, 11:39 AM
Hi Haseeb,

I tested the problem both in WCM and in WebPart scenarios and I was not able to reproduce it.

For the test I used the latest version of RadEditor for MOSS, which now is 5.8.10. Also I took the following properties from your configuration:
<property name="AllowScripts">True</property>  
<property name="ContentFilters">MakeUrlsAbsolute,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml</property>

The following properties I could not set because I do not have the necessary javascript:
<property name="OnClientLoad"></property
<property name="OnClientPasteHtml">OnRadEditorClientPasteHtml</property>

You should know that the following properties are obsolete so you can remove them form the configuration (check the following online help article Migration from RadEditor Classic to RadEditor for ASP.NET AJAX):
<property name="AllowThumbGeneration">True</property
<property name="ConvertToXhtml">True</property
<property name="EnableDocking">False</property
<property name="ShowHtmlMode">True</property
<property name="ShowPreviewMode">False</property>


Here you can find a small screen casts with my tests.
WCM: http://screencast.com/t/nrUspvQ3
WebPart: http://screencast.com/t/nt81TJJgq


So in order to fix the problem I suggest you to upgrade to the latest version of RadEditor for MOSS, which now is 5.8.10. You can find the upgrade instructions in the following online help article: Upgrading to a newer version of RadEditor for MOSS.

Greetings,
Stanimir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Sharepoint Integration
Asked by
Soudamini Khadanga
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Haseeb
Top achievements
Rank 1
Share this question
or