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

deployed RAD on MOSS 2007 - doesn't work

1 Answer 50 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Henrik
Top achievements
Rank 1
Henrik asked on 20 Jan 2011, 10:36 AM
Hi Community,

I have to say, that I love the amount of functionality of the RAD Editor and the documentation, but I've got a huge problem and I hope to get help here.
I wanted to deploy the RAD Editor for MOSS 2007. I made several changes in several files. Nothing special and all documented by the documentation of Telerik. I made some changes in the ToolsFile.xml. New Buttons, restricted Colors... Everythings works fine. The main changes that cause the failure are documented here:

ConfigFile.xml
<configuration>
    <property name="ToolbarMode">ShowOnFocus</property>
    <property name="ToolsWidth">520px</property>
    <property name="OnClientLoad">OnClientLoad</property>
</configuration>

MOSSEditorTools
function OnClientLoad(editor, args)
{
    var style = editor.get_contentArea().style;
    style.fontFamily = "Verdana";
    style.fontSize = "0.7em";
}
 
Telerik.Web.UI.Editor.CommandList["LineDistance1"] = function(commandName, editor, args)
{
    var sel = editor.getSelectionHtml();
    editor.pasteHtml('<span style="line-height:1em;">' + sel + '</span>');
}
 
Telerik.Web.UI.Editor.CommandList["LineDistance15"] = function(commandName, editor, args)
{
    var sel = editor.getSelectionHtml();
    editor.pasteHtml('<span style="line-height:1.5em;">' + sel + '</span>');
}
 
Telerik.Web.UI.Editor.CommandList["LineDistance2"] = function(commandName, editor, args)
{
    var sel = editor.getSelectionHtml();
    editor.pasteHtml('<span style="line-height:2em;">' + sel + '</span>');
}


ToolsFile.xml
<tools>
    <tool name="Bold" shortcut="CTRL+B"/>
    <tool name="Italic" shortcut="CTRL+I"/>
    <tool name="Underline" shortcut="CTRL+U"/>
    <tool name="StrikeThrough" />
    <tool separator="true"/>
    <tool name="JustifyLeft" />
    <tool name="JustifyCenter" />
    <tool name="JustifyRight" />
    <tool name="JustifyFull" />
    <tool name="JustifyNone" />
    <tool separator="true"/>
    <tool name="LineDistance1" />
    <tool name="LineDistance15" />
    <tool name="LineDistance2" />
    <tool separator="true"/>
    <tool name="Indent" />
    <tool name="Outdent" />
    <tool separator="true"/>
    <tool name="InsertOrderedList" />
    <tool name="InsertUnorderedList" />
    <tool name="ToggleTableBorder" />
    <tool separator="true"/>
    <tool name="SelectAll" shortcut="CTRL+A"/>
  </tools>


This works fine in my image but when I deploy it on my test system nothing works. You can't even save your changes. The RAD Editor doesn't work anymore. And furthermore if I remove the lines from the MOSSEditorTools.js it works fine.
Can anybody help?

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 21 Jan 2011, 09:37 AM
Hi Henrik,

Your configuration looks OK. I created a small video with my test using your configuration files. You can check it in the following location: http://screencast.com/t/Kl1YFRqn

Now regarding your problem here is what you need to check:
1. Make sure that you correctly extended your MOSS site with ASP.NET AJAX:
Extending your MOSS site with Microsoft ASP.NET AJAX 1.0
Extending your MOSS site with Microsoft ASP.NET AJAX 3.5

2. Make sure that the MOSSEditorTools.js file is not cached in your browser. You can see how I delete the file from the browser's cache in my video.

All the best,
Stanimir
the Telerik team
Browse the vast support resources we have to jump start 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
Henrik
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or