Hi,
I am having issues when I click on Enter key to goto the new line and then when I use BackSpace key it does not work.
I see that its working in your demo.
I have the latest Telerik web.ui/design/skin dlls.
Thanks for your help!
==============================
This is my RadEditor control code
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<div class="demo-container size-wide">
<telerik:RadEditor ContentAreaMode="Div" runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" EditModes="Design" ToolTip="XML Editor"
Height="515px" CssClass="centered-editor" Width="99%" Skin="WebBlue" NewLineMode="Br" OnClientPasteHtml="OnClientPasteHtml" StripFormattingOnPaste="NoneSupressCleanMessage" StripFormattingOptions="NoneSupressCleanMessage">
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Print" Text="Print" />
<telerik:EditorTool Name="Cut" Text="Cut" />
<telerik:EditorTool Name="Copy" Text="Copy" />
<telerik:EditorTool Name="Zoom" Text="Zoom" />
</telerik:EditorToolGroup>
</Tools>
<ImageManager ViewPaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"
UploadPaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"
DeletePaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"></ImageManager>
<CssClasses>
<telerik:EditorCssClass Name="Red Text" Value=".redText"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="Table Class" Value=".table"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="Div Class" Value=".div"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="Image Class" Value=".image"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="List Class" Value=".listSquare"></telerik:EditorCssClass>
</CssClasses>
</telerik:RadEditor>
function OnClientPasteHtml(editor, args) {
var commandName = args.get_commandName();
// Paste command is the one that handles plain paste, e.g., when Ctrl+V is used.
if (commandName === "Paste") {
var htmlToBePasted = args.get_value(); // Get the value to be pasted
// Use Regex to strip <strong>, <em> and <span> tags.
htmlToBePasted = htmlToBePasted.replace(/^( )+/, '');
// Set the processed content to the arguments.
args.set_value(htmlToBePasted);
}
}