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

Read .rtf file format?

8 Answers 185 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ricky
Top achievements
Rank 1
Ricky asked on 18 Dec 2007, 12:54 AM
Hi, does RadEditor supports the format of .rtf?
If not, is there any solution to this question?
Any help appreciated.

Ricky.

8 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Dec 2007, 09:02 AM
Hello Ricky,

RadEditor is a standard HTML/XHTML editor and it does not offer the requested RTF support out-of-the box. This feature is logged in our ToDo list but we cannot provide an exact timing when it will be implemented.

Currently, you should use some third party tool to convert the RTF content to HTML and after that you will be able to load it in RadEditor through its Html property.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ricky
Top achievements
Rank 1
answered on 18 Dec 2007, 01:16 PM
Thanks for the reply.

Ricky.
0
Ricky
Top achievements
Rank 1
answered on 07 Mar 2008, 07:14 AM
Hi,

I would like to double-check this request again because I find if I paste a section of words from Word to the editor I am jsut using. It will ask me to clear the word format(

I am from MS word

). 

Thanks,
Ricky.

 

0
Rumen
Telerik team
answered on 07 Mar 2008, 08:04 AM
Hi Ricky,

Do you want to strip the MS Word formatting or your want to keep it?

If you want to strip the MS Word formatting when pasting content from MS Word then just set the editor's StripFormattingOptions property to "MSWord".

If you want to not strip the MS Word formatting on paste and hide the editor's warning message then set StripFormattingOptions="NoneSupressCleanMessage", e.g.

<telerik:RadEditor StripFormattingOptions="NoneSupressCleanMessage" runat="server"></telerik:RadEditor>


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ricky
Top achievements
Rank 1
answered on 07 Mar 2008, 01:51 PM
One column of our client's legacy database is used to store the .rtf-formatted words, and we hope we can directly feedthe data of the column into RadEdtior to show the content along with their formats.

Does Raditor afford this kind of functionality?

Thanks for help
Ricky.
0
Rumen
Telerik team
answered on 07 Mar 2008, 02:59 PM
Hi Ricky,

As I pointed in my previous reply, RadEditor is an HTML editor and it can work only with HTML content. If you want to import RTF formatted content then you need to convert it to HTML with some third party control (for example this one) and after that load it in the editor through the Content server-property of the editor.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ricky
Top achievements
Rank 1
answered on 08 Mar 2008, 01:59 AM
Many thanks, Rumen.
I'll look into the link you provide.

BTW: since RadEditor can strip the rtf formats upon pasting content to it, I think it should strip rtf format when feeding data at code-behind.

Regards,
Ricky.
0
Rumen
Telerik team
answered on 10 Mar 2008, 11:44 AM
You are welcome, Ricky!

You can strip the Word formatting not only on paste, but on load and on submit. You can see the following help article for more information: Cleaning Word Formatting On Page Load And On Submit.

Kind regards,
Rumen
the Telerik team

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