Custom Bullets Settings
Release 2.17.2311 and above.
Use editor.list.customList to configure custom bullets.
Configuring the config
- Custom bullets support up to 9 levels.
- Items defined beyond level 9 are not displayed.
- If the array is empty (
[]), the custom bullet feature does not operate. - If fewer than 9 items are set, the defined items repeat to fill all 9 levels automatically.
- When
runStyleis set in the config, therunStyleconfiguration takes precedence over any style applied by the user during editing.
| Key | Type | Description |
|---|---|---|
format | string | The bullet format. See format below. |
levelText | string | The bullet character, valid only when format is bullet. See levelText below. |
runStyle | Object | Custom styles applied to the bullet. See runStyle below. |
distance | number | Spacing between the bullet and the text. See distance below. |
format
The available bullet formats applicable to format are as follows:
| Format | Result |
|---|---|
bullet | The character set in levelText |
decimal | 1. |
decimalEnclosedCircle | ① |
decimalParentheses | (1) |
upperLetter | A. |
lowerLetter | a. |
upperRoman | I. |
lowerRoman | i. |
ganada | 가. |
chosung | ㄱ. |
levelText
Valid only when format is bullet.
'editor.list.customList': [
{ format: 'decimal' },
{ format: 'bullet', levelText: '□' },
{ format: 'bullet', levelText: '♧' },
{ format: 'decimalEnclosedCircle' }
]
runStyle
Release 3.2.2509 and above, Release 2.20.2509 and above.
Adding the runStyle property lets you add custom styles to the bullet.
| Key | Type | Description | Example values |
|---|---|---|---|
color | string | Object | Text color | 'red', '#ff0000', { r: 255, g: 0, b: 0 } |
fontSize | Object | Font size | { value: 12, unit: 'pt' } |
underline | boolean | Underline | true / false |
italic | boolean | Italic | true / false |
strike | boolean | Strikethrough | true / false |
fontWeight | number | Font weight | 400, 700 |
backgroundColor | string | Object | Background color | 'yellow', '#ffff00', { r: 255, g: 255, b: 0 } |
'editor.list.customList': [
{
format: 'bullet',
levelText: '★',
runStyle: {
color: 'yellow',
fontSize: { value: 12, unit: 'pt' },
underline: true,
italic: true,
strike: true,
fontWeight: 700,
backgroundColor: { r: 135, g: 206, b: 250 }
}
}
]
distance
Release 3.3.1 and above, Release 2.21.1 and above.
Setting the distance value lets you adjust the spacing between the bullet and the text. (default: -10)
- Negative values widen the gap between the bullet and the text.
- Positive values make the bullet and text overlap each other.
'editor.list.customList': [
{ format: 'bullet', levelText: '★', distance: -20 },
{ format: 'bullet', levelText: '★', distance: -10 },
{ format: 'bullet', levelText: '★', distance: 0 },
{ format: 'bullet', levelText: '★', distance: 20 },
]
distance: -10 (default) | distance: -5 | distance: 0 |
|---|---|---|
Application Examples
Bullet configuration example
'editor.list.customList': [
{ format: 'decimal' },
{ format: 'bullet', levelText: '□' },
{ format: 'bullet', levelText: '♧' },
{ format: 'decimalEnclosedCircle' }
]
Style configuration example
Release 3.2.2509 and above, Release 2.20.2509 and above.
'editor.list.customList': [
{
format: 'bullet',
levelText: '★',
distance: -10, // 3.3.1, 2.21.1 and above
runStyle: {
color: 'yellow',
fontSize: { value: 12, unit: 'pt' },
underline: true,
italic: true,
strike: true,
fontWeight: 700,
backgroundColor: { r: 135, g: 206, b: 250 }
}
},
{
format: 'bullet',
levelText: '@',
distance: -5, // 3.3.1, 2.21.1 and above
runStyle: {
color: { r: 255, g: 123, b: 45 },
fontSize: { value: 24, unit: 'pt' },
italic: true,
strike: true,
backgroundColor: { r: 235, g: 55, b: 12 }
}
},
{
format: 'bullet',
levelText: '#',
distance: 0, // 3.3.1, 2.21.1 and above
runStyle: {
color: { r: 45, g: 255, b: 45 },
fontSize: { value: 32, unit: 'pt' },
italic: true,
strike: true,
backgroundColor: 'red'
}
},
{
format: 'bullet',
levelText: '♤',
distance: -5, // 3.3.1, 2.21.1 and above
runStyle: {
color: '#634948',
fontSize: { value: 40, unit: 'pt' },
italic: true,
strike: true,
backgroundColor: { r: 55, g: 12, b: 235 }
}
},
]