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

Rich Text Editor Formating not working correctly

5 Answers 411 Views
Editor
This is a migrated thread and some comments may be shown as answers.
sdrfs
Top achievements
Rank 1
sdrfs asked on 14 Oct 2015, 10:30 AM

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.

5 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Oct 2015, 10:14 AM

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
0
sdrfs
Top achievements
Rank 1
answered on 15 Oct 2015, 01:35 PM

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.

0
Marin Bratanov
Telerik team
answered on 16 Oct 2015, 10:37 AM

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
0
Baktha
Top achievements
Rank 1
answered on 18 Sep 2018, 02:09 PM

Hi,
Am able to enter comments using Rich Text editor for my project [at Design and HTML modes] using Firefox version prior to 62.0 but unable to enter comments  in Version - 62.0 only [Especially at design mode]. Attaching screenshots for reference.
Please help me on this

0
Rumen
Telerik team
answered on 19 Sep 2018, 03:49 PM
Hi Baktha,

Can you please call the editor.onParentNodeChanged() client-side method as explained in The RadEditor Control is Moved in the DOM article when showing/loading RadEditor on the page?

If the problem is reproducible in RadWindow check this article too: RadEditor Does Not Work in RadWindow.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
sdrfs
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
sdrfs
Top achievements
Rank 1
Baktha
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or