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

[Solved] Unable to bold ordered list numberings

1 Answer 111 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 17 Dec 2009, 04:32 PM

My users are trying to create an ordered list and then selecting the ordered list and bolding the whole list.  They are expecting the numberings (1., 2., 3.) to be bold as well and are surprised when they are not.  Is this a bug with how the editor deals with bold and ordered lists?  Or is this by design?

E.g.:

my list:
  1. a
  2. b
  3. c

notice how 1., 2., and 3. are not bold but a, b, and c are

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 18 Dec 2009, 08:07 AM
Hi Seth,

Not bolding the bullets / numbers of a list is not a bug at all, but an expected, semantic and correct behavior.

The bolding of RadEditor is actually wrapping the selection in a <strong /> tag, but as you know the text is within the <li /> items, whilst the bullets / numbers actually come from the <ol /> or <ul /> elements that cannot be wrapped inside a <strong /> tag, because it is invalid markup. You can use CSS in order to bolden the bullets of the list, though:

ul, ol
{
    font-weight: bold;
}


Kind regards,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Seth
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or