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
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:
- http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/pasting-content/overview - general information on pasting.
- http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/pasting-content/clean-ms-word-formatting - pasting from MS Word.
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 BratanovTelerik
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.
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,
Telerik
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
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