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

Setting Font, FontSize and FontColor

1 Answer 101 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
rick adams
Top achievements
Rank 2
rick adams asked on 28 Sep 2010, 04:50 PM
I would like to know if it is possible to have a new line use the currently selected Font, FontSize and Color in the RibbonBarUI. I can position the cursor in the RuchTextBox and set the Font, Size and color and type in text and everything displays fine. However if I position the cursor at the end of some existing text and enter a line break (using the Enter key) the font settings will change to reflect the settings of that text span. Is there a way I can force the RichTextEditor to use the existing settings in the RibbonBarUI?

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 30 Sep 2010, 08:11 AM
Hello rick adams,

Unfortunately, this is a small bug in the current version of the RichTextBox. The first time you hit enter, you split the current paragraph in two and move the caret to the beginning of the second paragraph. If you place the caret at the end of the first paragraph and hit enter again, you will create a third paragraph in between and your settings will be applied to it.
We will try to make the way it works more intuitive in the near future.

Kind regards,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
rick adams
Top achievements
Rank 2
Answers by
Iva Toteva
Telerik team
Share this question
or