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

Paste Plain Text in wrong position

4 Answers 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tonci
Top achievements
Rank 2
Tonci asked on 10 Dec 2008, 04:08 PM
We are using RadEditor Provider (Telerik.DNN.Modules_2008_3_1125_dev.zip) in DNN 4.9.0.
When we try in IE to Paste Plain Text in the middle of some edited text it always put pasted text in the start of edited text. So in wrong place. Not in the position where the text cursor was.
Normal Paste is putting pasted text in expected place.
Please advise?
Kind regards
Tonci

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Dec 2008, 04:01 PM
Hi Tonci,

We are not aware of this problem and we will need your assistance in order to reproduce it on our side.

Do you call PastePlainText from your own custom button?
Are you able to reproduce it on our demos: Default Example?
Which browser are you experiencing this behavior in?

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tonci
Top achievements
Rank 2
answered on 16 Dec 2008, 09:22 AM
Hi Rumen

We have this problem in Internet Explorer 7 (my is ver 7.0.6001.18000 on Vista) .

Yes, I can reproduce this issue using your demo: Default Example.

No, I do not call PastePlainText from own custom button.

Steps to reproduce it:
1. In Notepad write: This is some plain text.
2. In Notepad select this text and place it on clipboard (Ctrl + C)
3. In IE open demo: Default Example
4. In RadEditor position text cursor in the third row between words "Web Editor"
5. Using mouse in RadEditor toolbar use Paste Plain Text option from the menu on the second Paste button in first row of toolbar.
6. IE displays alert to allow access to clipboard, so allow it.
7. Text from clipboard "This is some plain text" is pasted in the start of text in Rad Editor, so before the RadEditor image and not where it should be in third row.

Kind regards
Tonci


0
Accepted
Rumen
Telerik team
answered on 19 Dec 2008, 10:30 AM
Hi Tonci,

Thank you for the detailed step-by-step instructions, which helped us to reproduce the problem.

The problem is due to the ToolStrip element which contains the Paste functions. When you click on its little arrow that expands the dropdown popup, the selection is lost and for that reason the pasted content is always pasted at the begging of the content.

As a temporary solution you can display the desired paste options as standalone buttons on the toolbar and remove the toolstrip element which is causing the issue. All you need to do is to replace the following tag in the ToolsFile.xml file

    <tool name="PasteStrip"/>

whit these ones:

    <tool Name="PasteFromWord" />
    <tool Name="PastePlainText" />
    <tool Name="PasteAsHtml" />
    <tool Name="pasteFromWordNoFontsNoSizes" />

I logged the reported bug in our bug tracking system and we will try to fix it in one of the upcoming hotfixes of RadEditor. As a small note of gratitude for your feedback I updated your Telerik points.

Best wishes,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tonci
Top achievements
Rank 2
answered on 19 Dec 2008, 02:13 PM

Hi Rumen

 

Great! Your solution worked. Thanks!

 

Kind regards
Tonci

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