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
MOSSEditorTools
ToolsFile.xml
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?
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?