I have a RadEditor set up. Is there a way to insert a sort of five spaces into an area which is a bullet point? Whenever I try to accomplish this it always creates the secondary bullet point and the spaces. I need the line's point to stay the same, but the spaces inserted. Posted below is the editor itself, and the javascript function I've found on the forums to insert five spaces.
editor
javascript
Any help is appreciated...
editor
Product Description: <br /> |
<span style="font-family: Arial; font-size: 12pt;"> |
<telerik:RadEditor id="ProductDescription" runat="server" Width="700px" Height="800px" |
Skin="WebBlue" ToolsFile="~/Includes/BasicTools.xml" OnClientLoad="OnRadEditorClientLoad" |
EditModes="All"> |
<SpellCheckSettings AllowAddCustom="true" DictionaryLanguage="en-US" DictionaryPath="~/App_Data/RadSpell" SpellCheckProvider="EditDistanceProvider" /> |
<CssFiles> |
<telerik:EditorCssFile Value="~/Includes/EditorContentArea.css" /> |
</CssFiles> |
</telerik:RadEditor> |
</span> |
<br /> |
javascript
function OnRadEditorClientLoad(editor, args) { |
//attach to the onkeydown event, check whether the tab key is pressed and paste in the editor |
editor.attachEventHandler("onkeydown", function(e) { |
if (e.keyCode == '9') { |
editor.pasteHtml(" "); |
if (!document.all) { |
e.preventDefault(); |
e.preventBubble(); |
e.stopPropagation(); |
} |
else { |
e.returnValue = false; |
e.cancelBubble = true; |
} |
} |
}); |
} |
Any help is appreciated...