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

Bullet formatting get lost

3 Answers 90 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
rahul
Top achievements
Rank 1
rahul asked on 23 Jul 2012, 06:03 AM

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

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 25 Jul 2012, 10:29 AM
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.

0
rahul
Top achievements
Rank 1
answered on 21 Aug 2012, 05:56 AM

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

0
Petya
Telerik team
answered on 23 Aug 2012, 05:34 PM
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.

Tags
RichTextBox
Asked by
rahul
Top achievements
Rank 1
Answers by
Petya
Telerik team
rahul
Top achievements
Rank 1
Share this question
or