I am using the editor as a textbox and want to use a button outside the editor to fire it's paste command.
The function below works to insert text but what I am trying to do is paste a screenshot from the clipboard into the editor using IE 11 clipboardData.
function Paste() {
var editor = $find("<%=RadEditor1.ClientID%>");
//var clipBoardData = window.clipboardData.getData("URL");
editor.setFocus();
editor.pasteHtml("1234");
}
Using the editor's paste button works for this but I am trying to use the editor to load the screenshot and as a large preview textbox before saving it.
when I hide the toolbar if you put the cursor in the editor and do a ctrl - v it does paste the screenshot but if you right click there is no paste option.
I am trying to have a paste button outside the editor to make it more intuitive for the users.
Thanks in advance,
Dave
The function below works to insert text but what I am trying to do is paste a screenshot from the clipboard into the editor using IE 11 clipboardData.
function Paste() {
var editor = $find("<%=RadEditor1.ClientID%>");
//var clipBoardData = window.clipboardData.getData("URL");
editor.setFocus();
editor.pasteHtml("1234");
}
Using the editor's paste button works for this but I am trying to use the editor to load the screenshot and as a large preview textbox before saving it.
when I hide the toolbar if you put the cursor in the editor and do a ctrl - v it does paste the screenshot but if you right click there is no paste option.
I am trying to have a paste button outside the editor to make it more intuitive for the users.
Thanks in advance,
Dave