Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
// 글자 크기, 클래스 이름('test1'), title('test1') 추가
editor.execCommand('addRunProperties', {
    style: {
        fontSize: {value: 20, unit: 'pt'}
    },
    className: 'test1',
    attributes: {
        'title': 'test1'
    }
});


// 글자 , 클래스 이름('test2'), aria-label('test2') 추가
editor.execCommand('addRunProperties', {
    style: {
        color: {r: 255, g: 0, b: 0}
    },
    className: 'test2',
    attributes: {
        'aria-label': 'test2'
    }
});

...