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

On Paste, add Overlay Layer

3 Answers 20 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 20 Nov 2008, 05:27 PM
When I paste content from Word using Firefox, a semi-transparent overlay is added to prevent user interaction with the editor until the paste process finishes.  When Pasting from IE7, this overlay is not displayed. How can I get this same functionality? I've tried adding one myself using the OnClientCommandExecuting function, but anything I do there doesn't get applied until after the paste finishes.

Thanks,
Shane

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Nov 2008, 12:31 PM
Hi Shane,

When you paste content in Firefox using the Paste From Word, Paste Plain Text, etc buttons then the editor opens special Paste dialogs in which the user paste the content. These dialogs are needed, because Firefox does not allows a programmatic way for pasting content via script and the only possible way to strip the content is to paste it in these dialogs. When the dialog is launched the semi-transparent overlay is displayed to prevent the pasting outside of the dialog.

Since the paste restriction does not exist in Internet Explorer, the editor does not launch any paste dialogs and  the semi transparent overlay is not needed and displayed.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shane
Top achievements
Rank 1
answered on 24 Nov 2008, 04:09 PM
I understand why it functions this way, but I have some users that paste 10+ pages from Word and this can be slow/unresponsive, especially in IE, while it's being parsed by javascript.  I would like to show some kind of indicator so the user knows it is processing.  Any suggestions for that?

Thank You.
0
Rumen
Telerik team
answered on 25 Nov 2008, 02:31 PM
Hi Shane,

Thank you for the provided information.

Unfortunately, it is not possible to display a transparent layer during the paste operation, because the browser freezes and does not allow any other operations during this event.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Shane
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Shane
Top achievements
Rank 1
Share this question
or