Pasting using the PasteStrip button

5 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 18 Nov 2011 Link to this post

    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
  2. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 18 Nov 2011 Link to this post

    Attached is an image of this happening.

    --
    Stuart
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 21 Nov 2011 Link to this post

    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
  5. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 21 Nov 2011 Link to this post

    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
  6. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 21 Nov 2011 Link to this post

    Thanks Rumen.

    --
    Stuart
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017