Bullet formatting get lost

4 posts, 0 answers
  1. rahul
    rahul avatar
    25 posts
    Member since:
    Jan 2011

    Posted 23 Jul 2012 Link to this post


    I have the below fomat of bullets in outlook, when I copy this into RadRichTextBox

     

    ü  Test bullet1

    ü  Test bullet 2

    ü  Test bullet3

     

    It get's converted into: (ü sign converted into  )

     Test bullet1
     Test bullet 2
     Test bullet3

    This is reproducible  in demos as well (http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor

    Thanks,
    Rahul

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 25 Jul 2012 Link to this post

    Hi Rahul,

    When you paste in a Silverlight application, the text is converted to plain text. This is due to the fact that the clipboard in Silverlight does not support rich text. Because of that, not all bulleting symbols are converted as you expect and the text is stripped of its styles. 

    However, it is possible to use the tick symbol as a bullet. Based on this article I created a sample that shows how you can register a new bulleted list. Please, find the sample project attached.

    Don't hesitate to contact us if you need further assistance. 

    Kind regards,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. rahul
    rahul avatar
    25 posts
    Member since:
    Jan 2011

    Posted 21 Aug 2012 Link to this post

    Hi Petya,

    I tried your solution of providing custom bullets. Problem here is, if I save file as html and reload it again in RadRichTextBox control. All my custom bullets get lost and changed into plain bullets. How can I tackle this??
    Quick reply is highly appreciated.

    Thanks,
    Rahul

  5. Petya
    Admin
    Petya avatar
    975 posts

    Posted 23 Aug 2012 Link to this post

    Hi Rahul,

    The default classes for unordered list in HTML do not contain tick. In order to use a custom list in HTML, you have to embed an image as a bullet.

    On the other hand, the solution I earlier provided creates the bullets based on a symbol. This is one of the reasons why RadRichTextBox's HtmlFormatProvider does not support export of custom bullets and converts them. At this point, we are not considering implementing such feature.

    Just an idea. Can't you use another format for intermediate document storage, like Xaml? This might be possible if you do not edit the Html in another editor. This way you will not have any troubles converting bullets back.

    Greetings,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top