| Status |
|---|
| |
|---|
| colour | Yellow |
|---|
| title | 릴리즈 3.2.2507 이상 |
|---|
|
셀렉션한 텍스트에 className, attributes를 추가합니다.
...
Parameters:
| actionName | string | 액션 이름 |
| properties | Object | 적용할 속성 |
| className | string | 적용할 클래스 이름 |
| attributes | Object | 적용할 HTML 속성 |
attribute의 값이 null인 경우 해당 속성을 제거합니다.
Example:
...
| editor.execCommand('addRunProperties', {
className: ' |
|
...
Butterfly',
attributes: {
'title': ' |
|
...
...
...
...
...
...
...
|
| Code Block |
|---|
| editor.execCommand('addRunProperties', {
className: ' |
|
...
Beautiful',
attributes: {
' |
|
...
...
|
| before |
| Code Block |
|---|
| <span>아름다운 나비</span> |
|
| Code Block |
|---|
| <span class="Butterfly" aria-label="아름다운 나비" title="Beautiful butterfly">아름다운 나비</span> |
|
| after |
| Code Block |
|---|
| <span class="Butterfly" aria-label="아름다운 나비" title="Beautiful butterfly">아름다운 나비</span> |
|
| Code Block |
|---|
| <span class="Butterfly Beautiful" aria-label="아름다운 나비">아름다운 나비</span> |
|