릴리즈 2.17.2311 이상
'editor.list.customList'를 이용하여 커스텀 글머리를 설정할 수 있습니다.
config 설정하기
- 커스텀 글머리는 최대 9레벨까지 설정할 수 있습니다.
- 9레벨을 초과해서 정의된 항목은 표시되지 않습니다.
- 설정 배열이 빈 배열([])일 경우, 커스텀 글머리 기능은 동작하지 않습니다.
- 설정한 항목 개수가 9개보다 적을 경우, 정의된 항목이 반복되어 9레벨까지 자동으로 채워집니다.
- config 설정에 runStyle을 설정하면, 에디터 편집 시 사용자가 적용한 스타일보다 runStyle 설정이 우선 적용됩니다.
| Key | Type | 설명 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| format | string |
| ||||||||||||||||||||||||||||||||
| levelText | string |
'editor.list.customList': [
{ format: 'decimal' },
{ format: 'bullet', levelText: '□' },
{ format: 'bullet', levelText: '♧' },
{ format: 'decimalEnclosedCircle' }
]
| ||||||||||||||||||||||||||||||||
runStyle | Object | 릴리즈 3.2.2509 이상 릴리즈 2.20.2509 이상
'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 | number | 릴리즈 3.3.1 이상 릴리즈 2.21.1 이상distance값을 설정하면 글머리와 텍스트 사이 간격을 조정할 수 있습니다. (기본값 -10)
'editor.list.customList': [
{ format: 'bullet', levelText: '★', distance: -20 },
{ format: 'bullet', levelText: '★', distance: -10 },
{ format: 'bullet', levelText: '★', distance: 0 },
{ format: 'bullet', levelText: '★', distance: 20 },
]
|
적용 예시
글머리 설정 예시
'editor.list.customList': [
{ format: 'decimal' },
{ format: 'bullet', levelText: '□' },
{ format: 'bullet', levelText: '♧' },
{ format: 'decimalEnclosedCircle' }
]
|
|---|
스타일 설정 예시 릴리즈 3.2.2509 이상 릴리즈 2.20.2509 이상
'editor.list.customList': [
{
format: 'bullet',
levelText: '★',
distance: -10, // 3.3.1, 2.21.1버전 이상
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버전 이상
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버전 이상
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버전 이상
runStyle: {
color: '#634948',
fontSize: { value: 40, unit: 'pt' },
italic: true,
strike: true,
backgroundColor: { r: 55, g: 12, b: 235 }
}
},
]
|
|---|




