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

New Paragraph Button causes Clipboard Access Dialog in IE

6 Answers 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
bdukes
Top achievements
Rank 2
bdukes asked on 02 Sep 2010, 08:25 PM
When in Internet Explorer 8, clicking the New Paragraph button causes the browser to prompt the user:

Do you want to allow this webpage to access your Clipboard?
If you allow this, the webpage can access the Clipboard and read information that you've cut or copied recently.

Is there any way this can be avoided?

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Sep 2010, 03:03 PM
Hi bdukes,

The observed behavior is a side effect of our custom implementation of the browser's insertParagraph command. The browser's command has a problem to render space for newly inserted empty paragraphs.

What you can do to remove the "Do you want to allow this webpage to access your Clipboard?" warning message is to:
1) Add the site with RadEditor to the tursted sites of IE or
2) use the browser's  InsertParagraph command:

<telerik:radeditor runat="server" ID="RadEditor1" >
  <Tools>
      <telerik:EditorToolGroup >
          <telerik:EditorTool Name="InsertParagraph" Text="Insert Paragraph" />
      </telerik:EditorToolGroup>
  </Tools>            
</telerik:radeditor>
<script type="text/javascript">
    Telerik.Web.UI.Editor.CommandList["InsertParagraph"] = function (commandName, editor, args) {
        editor.get_document().execCommand("InsertParagraph", false, false);
    };
</script>



All the best,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
bdukes
Top achievements
Rank 2
answered on 07 Sep 2010, 08:26 PM
Using the code that you provided, I still encounter the Clipboard dialog... 

Requiring users to add the site as a trusted site isn't an option for us.
0
Dobromir
Telerik team
answered on 13 Sep 2010, 08:16 AM
Hi bdukes,

This problem is not directly related to RadEditor but is a standard browser behavior. RadEditor's content area is an editable <iframe> and is based on the browser's default RichTextEditing engine. The security level of InternetExplorer informs the user when the browser is trying to access the clipboard.

For your convenience I have prepared a sample HTML page with editable <iframe> to verify this behavior.

Greetings,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
bdukes
Top achievements
Rank 2
answered on 13 Sep 2010, 02:26 PM
So, are you saying that "New Paragraph" is a behavior that inherently accesses the clipboard (even though there isn't an obvious connection to the end user)?  There's no replacement/alternative/workaround that does not access the clipboard?

Thanks for your help.
0
Accepted
Rumen
Telerik team
answered on 15 Sep 2010, 04:12 PM
Hi bdukes,

The only workaround is to implement your own InsertParagraph command using text ranges. Note that this will be not an easy task, the cross browser support is different for the different browsers.

We will not have enough time to implement the required functionality for Q3 2010, because our ToDo list is pretty set, but I logged your request in our ToDo list and we will try to implement it for Q1 2011. You can see the PITS item at http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/3439.

All the best,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
bdukes
Top achievements
Rank 2
answered on 15 Sep 2010, 04:19 PM
Thanks for the reply.  I appreciate you adding an issue for future consideration, as well as providing some information on a workaround.
Tags
Editor
Asked by
bdukes
Top achievements
Rank 2
Answers by
Rumen
Telerik team
bdukes
Top achievements
Rank 2
Dobromir
Telerik team
Share this question
or