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

Cut,Copy Paste introduce an extra <FONT> tag

1 Answer 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 04 Jul 2008, 10:59 AM
if we select any text within a <SPAN> and do 'cut' operation and paste it somewhere else then it introduce the nested <FONT> tag at the position where we paste it. It is creating a problem for our application.

We are useing 

RadEditor1.Document.execCommand(

"Cut", false, null);
RadEditor1.Document.execCommand("Copy", false, null);
RadEditor1.Document.execCommand("Paste", false, null);

Also i tried to find any client event for RadEditor but there is no such command that support cut copy paste.

Is there any Client side command for Editor itself that will not introduce this extra <FONT> tag on these Cut, Copy, Paste operation.

Thanks in advance for any fruitfull suggestion.

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 Jul 2008, 11:59 AM
Hi Michael,

Could you please tell us whether you are using RadEditor Classic (RadEditor.Net2.dll) or RadEditor for ASP.NET AJAX (Telerik.Web.UI.dll)? You have indicated that you are using RadEditor for ASP.NET AJAX (v2008.1 619) but the Document string is a property of RadEditor Classic.

Nevertheless, the problem is most likely due to the ConvertFontToSpan filter of RadEditor. My suggestion is to disable this filter and test again your scenario:

RadEditor Classic: RadEditor1.ConvertFontToSpan = false;
RadEditor for ASP.NET AJAX: RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan);

If you still experience the problem: please, send sample content, screenshots and steps demonstrating how to reproduce it.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Michael
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or