RichTextBox cut and paste and IE 9

5 posts, 1 answers
  1. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 26 Apr 2011 Link to this post

    Cut and paste from IE 9 doesn't appear to work to a richtextbox bound with the HtmlDataProvider.  I can cut & paste from the same web page using Firefox and it works fine.
    2011.1.419.40
  2. Answer
    Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 28 Apr 2011 Link to this post

    Hi David Brenchley,

    Different browsers put different content in the Clipboard, so it is possible that the behavior differs. However, we were not able to reproduce the issue you are describing.
    Data binding could not be a factor here, as it only exports the document when you make changes to it and updates the property you have bound it to and vice versa - when the property changes, it updates the document. Are you using the data providers as-is, or have you created some other logic for binding the content of the document?
    Any further details of the problem would be greatly appreciated.

    Greetings,
    Iva
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 28 Apr 2011 Link to this post

    I wouldn't doubt that it is an issue with the way corporate sets up our computers and this could entirely be a problem with my company.  There are a number of other issues we have using Internet Explorer.
  5. Santosh kumar
    Santosh kumar avatar
    14 posts
    Member since:
    Dec 2009

    Posted 30 Sep 2011 Link to this post

    i am unable to copy anything from IE 8 to RichTextBox. Is this known issue?
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 04 Oct 2011 Link to this post

    Hello Santosh Kumar,

    The problem is that the HTML that Internet Explorer puts in the clipboard is mostly script, which cannot be used to create a RadDocument. You can try adding a reference to Telerik.Windows.Documents.FormatProviders.Rtf. In this way, the content of the clipboard which is in RTF format will be used when pasting. The only limitation we are aware of is that the images would not be pasted, as they are added in the RTF as IncludePicture field, which is not supported.
     We will adjust the pasting for the next official release, so that if the HTML and RTF that are in the clipboard create an empty document, the paste will fallback to plain text.

    Best wishes,
    Iva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WPF is Visual Studio 2017 Ready