Hi,
I' working with the version 2014.2.724.45 and our standard is IE9 and I have problems with the clientPasteHtml. My test page is very simple:
If we use the keyboard to paste text (ctrl+v), the command name is OK (Paste), but if we use the toolbar or the context menu, the command name is not OK (undefined)
Could you help to solve this problem??
I tested with IE11 and I meet the same behavior.
Thank you and have a nice day.
Steeve
I' working with the version 2014.2.724.45 and our standard is IE9 and I have problems with the clientPasteHtml. My test page is very simple:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikRadEditorPaste.Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function onClientPasteHtml(editor, args) {
var commandName = args.get_commandName();
if (commandName == "Paste") {
alert('OK --> CommandName = ' + commandName);
} else {
alert('NOT OK --> CommandName = ' + commandName);
}
}
</
script
>
<
asp:ScriptManager
runat
=
"server"
></
asp:ScriptManager
>
<
telerik:RadEditor
ID
=
"radEditorMandate"
runat
=
"server"
Width
=
"856px"
Height
=
"590px"
StripFormattingOptions
=
"NoneSupressCleanMessage, ConvertWordLists, MSWordNoMargins"
OnClientPasteHtml
=
"onClientPasteHtml"
>
<
ContextMenus
>
<
telerik:EditorContextMenu
TagName
=
"*"
>
<
telerik:EditorTool
Name
=
"Paste"
/>
</
telerik:EditorContextMenu
>
</
ContextMenus
>
<
Tools
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"Paste"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"~/RadEditor.css"
/>
</
CssFiles
>
</
telerik:RadEditor
>
</
form
>
</
body
>
</
html
>
If we use the keyboard to paste text (ctrl+v), the command name is OK (Paste), but if we use the toolbar or the context menu, the command name is not OK (undefined)
Could you help to solve this problem??
I tested with IE11 and I meet the same behavior.
Thank you and have a nice day.
Steeve