Read .rtf file format?

9 posts, 0 answers
  1. Ricky
    Ricky avatar
    247 posts
    Member since:
    Jun 2007

    Posted 17 Dec 2007 Link to this post

    Hi, does RadEditor supports the format of .rtf?
    If not, is there any solution to this question?
    Any help appreciated.

    Ricky.
  2. Rumen
    Admin
    Rumen avatar
    13043 posts

    Posted 18 Dec 2007 Link to this post

    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
  3. Ricky
    Ricky avatar
    247 posts
    Member since:
    Jun 2007

    Posted 18 Dec 2007 Link to this post

    Thanks for the reply.

    Ricky.
  4. Ricky
    Ricky avatar
    247 posts
    Member since:
    Jun 2007

    Posted 07 Mar 2008 Link to this post

    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.

     

  5. Rumen
    Admin
    Rumen avatar
    13043 posts

    Posted 07 Mar 2008 Link to this post

    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
  6. Ricky
    Ricky avatar
    247 posts
    Member since:
    Jun 2007

    Posted 07 Mar 2008 Link to this post

    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.
  7. Rumen
    Admin
    Rumen avatar
    13043 posts

    Posted 07 Mar 2008 Link to this post

    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
  8. Ricky
    Ricky avatar
    247 posts
    Member since:
    Jun 2007

    Posted 07 Mar 2008 Link to this post

    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.
  9. Rumen
    Admin
    Rumen avatar
    13043 posts

    Posted 10 Mar 2008 Link to this post

    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
Back to Top