This is a migrated thread and some comments may be shown as answers.

Pasting using the PasteStrip button

4 Answers 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 18 Nov 2011, 05:32 PM
Every now and then, if a user hits the PasteStript button to paste in to the editor, an alert window shows up saying "Please use Ctrl+V to Paste".

Why would this happen and, more importantly, how do I stop it?

FWIW, the alert looks a bit like a RadAlert except there is no chrome. It most assuredly isn't a standard javascript alert.

--
Stuart

4 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 18 Nov 2011, 05:33 PM
Attached is an image of this happening.

--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 21 Nov 2011, 02:35 PM
Anyone?

FWIW my tools file is defined like this...
<?xml version="1.0" encoding="utf-8" ?>
<root>
  <tools name="Clipboard" tab="Home">
    <tool name="PasteStrip" size="large"/>
    <tool name="Cut" shortcut="CTRL+X" />
    <tool name="Copy" shortcut="CTRL+C"/>
  </tools>
  <tools name="Font" tab="Home">
    <tool name="FontName" shortcut="CTRL+SHIFT+F"/>
    <tool name="RealFontSize" shortcut="CTRL+SHIFT+P" width="80px"/>
    <tool name="ConvertToLower" strip="FontDropDowns" />
    <tool name="ConvertToUpper" strip="FontDropDowns" />
    <tool name="Bold" strip="FontBasicTools" shortcut="CTRL+B"/>
    <tool name="Italic" strip="FontBasicTools" shortcut="CTRL+I"/>
    <tool name="Underline" strip="FontBasicTools" shortcut="CTRL+U"/>
    <tool name="StrikeThrough" strip="FontBasicTools1"/>
    <tool name="Superscript" strip="FontBasicTools1"/>
    <tool name="Subscript" strip="FontBasicTools1"/>
    <tool name="FormatStripper" strip="FontDropDowns" />
    <tool name="ForeColor"/>
    <tool name="BackColor"/>
  </tools>
  <tools name="Paragraph" tab="Home">
    <tool name="InsertUnorderedList" strip="ListsAndIndention"/>
    <tool name="InsertOrderedList" strip="ListsAndIndention"/>
    <tool name="Indent" strip="ListsAndIndention"/>
    <tool name="Outdent" strip="ListsAndIndention"/>
    <tool name="JustifyLeft" strip="Align"/>
    <tool name="JustifyCenter" strip="Align"/>
    <tool name="JustifyRight" strip="Align"/>
    <tool name="JustifyFull" strip="Align"/>
    <tool name="JustifyNone" strip="Align"/>
    <tool name="InsertParagraph" shortcut="CTRL+M" strip="other"/>
    <tool name="ToggleTableBorder" strip="other"/>
  </tools>
  <tools name="Editing" tab="Home">
    <tool name="AjaxSpellCheck" strip="EditingTools1"/>
    <tool name="FindAndReplace" strip="EditingTools1" shortcut="CTRL+F"/>
    <tool name="SelectAll" strip="EditingTools1" shortcut="CTRL+A"/>
    <tool name="Undo" strip="EditingTools2" shortcut="CTRL+Z"/>
    <tool name="Redo" strip="EditingTools2" shortcut="CTRL+Y"/>
    <tool name="LinkManager" shortcut="CTRL+K" strip="EditingTools3"/>
    <tool name="Unlink" shortcut="CTRL+SHIFT+K" strip="EditingTools3"/>
    <tool name="InsertDate" />
    <tool name="InsertTime" />
    <tool name="InsertHorizontalRule" />
    <tool name="InsertTable" />
    <tool name="InsertSymbol"  />
  
  </tools>
  
  <tools name="Help" tab="Home">
    <tool name="Help"/>
  </tools>
</root>

--
Stuart
0
Accepted
Rumen
Telerik team
answered on 21 Nov 2011, 02:40 PM
Hello Stuart,

Please, note that to protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla, Safari / Chrome and Opera rich text editor, so the corresponding buttons will not work. You can cut and paste content in Firefox, Safari / Chrome and Opera only using the Ctrl+X and Ctrl+V shortcut or the Paste from Word dialog.
You can also paste content from the browsers menu: Edit -> Paste.
More information is available in this help article: Cleaning Word Formatting.
The Cut, Copy and Paste commands could be executed by JavaScript code under Internet Explorer only.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Stuart Hemming
Top achievements
Rank 2
answered on 21 Nov 2011, 04:31 PM
Thanks Rumen.

--
Stuart
Tags
Editor
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Stuart Hemming
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or