Rich Text Editor Formating not working correctly

4 posts, 0 answers
  1. Anjo
    Anjo avatar
    3 posts
    Member since:
    Nov 2014

    Posted 14 Oct 2015 Link to this post

    Hi,
    When I try to copy-paste contents from word to rad editor, the contents are getting copied without any formatting in IE 11 while there is no issue with other browsers like Firefox or Chrome. In other browsers the formatting is proper for the copied text. Please provide a fix for this issue.

    Thanks,

    Anjo.

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 15 Oct 2015 Link to this post

    Hello Anjo,

    RadEditor works with the content provided by the browser. IE11 has its own functionality regarding pasting from MS Word and RadEditor has next to no control over the content in this case. More details on the way pasting works are available in the documentation:

    What I can suggest at this point is the following:

    • try setting StripFormattingOptions to None for test. If this helps, look into a finding combination of the available filters that will match your needs.
    • try pasting in a simple editable div in IE11 and if shows the same behavior - the problem is with what the browser provides. Here is a sample div that you can use for testing:

      <div contentEditable="true" style="height: 300px; width: 300px; border: 2px solid red;"></div>
    • see whether the programmatic clipboard access is disabled in your IE instance and if possible enable it to see whether this helps. This toggle is under Internet Options > Security > Custom Level > "Allow Programmatic Clipboard access" near the bottom

    Regards,

    Marin Bratanov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anjo
    Anjo avatar
    3 posts
    Member since:
    Nov 2014

    Posted 15 Oct 2015 in reply to Marin Bratanov Link to this post

    Thanks for your reply Marin Bratanov....

    The issue is when I try to copy paste the content using IE 11 the contents are getting copied with inline styles like font family or font
    size so the CSS styles of the container is not applied to the content. When I try to copy the content using Chrome or Firefox the contents are
    getting copied without the inline style and hence the Styles of the container is getting applied when we publish.

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 16 Oct 2015 Link to this post

    Hi,

    As I already explained, it is up to the browser to provide content to RadEditor and IE11 does that differently. I would still advise comparing the content from the editable div to the one in the editor and if there are major differences, you should test the StrpFormattingOptions property. If the content is the same, then the problem stems from the way IE11 provides the content and there is nothing else RadEditor can do about it.

    Regards,

    Marin Bratanov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top