릴리즈 3.2.2507 이상
셀렉션한 텍스트에 className, attributes를 추가합니다.
기존에 적용되어 있는 속성에 추가로 적용됩니다.
Parameters:
| actionName | string | 액션 이름 | |
| properties | Object | 적용할 속성 | |
| className | string | 적용할 클래스 이름 | |
| attributes | Object | 적용할 HTML 속성 | |
Example:
// 클래스 이름('test1'), title('test1') 추가
editor.execCommand('addRunProperties', {
className: 'test1',
attributes: {
'title': 'test1'
}
});
// 클래스 이름('test2'), aria-label('test2') 추가
editor.execCommand('addRunProperties', {
className: 'test2',
attributes: {
'aria-label': 'test2'
}
});