Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

릴리즈 3.2.2507 이상

셀렉션한 텍스트에 className, attributes를 추가합니다.

기존에 적용되어 있는 속성에 추가로 적용됩니다.

attribute의 값이 null인 경우 해당 속성을 제거합니다.

Parameters:

actionNamestring액션 이름
propertiesObject적용할 속성

classNamestring적용할 클래스 이름
attributesObject적용할 HTML 속성


Example:

actionbeforeafter
editor.execCommand('addRunProperties', {
    className: 'Butterfly',
    attributes: {
        'title': 'Beautiful butterfly',
        'aria-label': '아름다운 나비'
    }
});
<span>아름다운 나비</span>
<span class="Butterfly" aria-label="아름다운 나비" title="Beautiful butterfly">아름다운 나비</span>
  • No labels