I used the below link for performing a 'select all' using javascript and it worked perfectly.
http://www.telerik.com/forums/highlight-a-word-in-radeditor
However, when trying to do the same for 'Copy', it does not work. There is no error thrown.
'Allow programmatic access to clipboard' has been enabled in IE8 security settings.
Using ToolsFile.xml to define controls.
Note: Clicking the editor's 'copy' button works fine, but I need to fire this programmatically.
Actual Code:
<telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="StartWithPreviewMode"
StripFormattingOnPaste="NoneSupressCleanMessage" EditModes="Design,Preview" ToolsFile="ToolsFile.xml">
<script type="text/javascript">
function PerformCopy() {
var editor = $find("<%=RadEditor1.ClientID%>");
editor.fire("SelectAll");
editor.fire("Copy"); //--> Does not copy anything to clipboard.
function StartWithPreviewMode(editor, args) {
editor.set_mode(4);
}
</script>
http://www.telerik.com/forums/highlight-a-word-in-radeditor
However, when trying to do the same for 'Copy', it does not work. There is no error thrown.
'Allow programmatic access to clipboard' has been enabled in IE8 security settings.
Using ToolsFile.xml to define controls.
Note: Clicking the editor's 'copy' button works fine, but I need to fire this programmatically.
Actual Code:
<telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="StartWithPreviewMode"
StripFormattingOnPaste="NoneSupressCleanMessage" EditModes="Design,Preview" ToolsFile="ToolsFile.xml">
<script type="text/javascript">
function PerformCopy() {
var editor = $find("<%=RadEditor1.ClientID%>");
editor.fire("SelectAll");
editor.fire("Copy"); //--> Does not copy anything to clipboard.
function StartWithPreviewMode(editor, args) {
editor.set_mode(4);
}
</script>