Paste Plain Text in wrong position

5 posts, 1 answers
  1. Tonci
    Tonci  avatar
    22 posts
    Member since:
    Oct 2007

    Posted 10 Dec 2008 Link to this post

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

    Posted 15 Dec 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tonci
    Tonci  avatar
    22 posts
    Member since:
    Oct 2007

    Posted 16 Dec 2008 Link to this post

    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


  5. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 19 Dec 2008 Link to this post

    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.
  6. Tonci
    Tonci  avatar
    22 posts
    Member since:
    Oct 2007

    Posted 19 Dec 2008 Link to this post

    Hi Rumen

     

    Great! Your solution worked. Thanks!

     

    Kind regards
    Tonci

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