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

Version 1 Current »

캐럿이 위치한 문단의 줄간격을 설정합니다.

문단을 셀렉션한 경우 셀렉션한 모든 문단의 줄간격을 설정합니다.


Parameters:

NameTypeDescription
actionNameString액션 이름
lineHeightObject

{ value: {Number}, unit: {String} }


Example:

editor.execCommand('setLineHeight', { value: 1.6, unit: '' });   // 줄간격 1.6 설정
editor.execCommand('setLineHeight', { value: 150, unit: '%' });  // 줄간격 150% 설정
editor.execCommand('setLineHeight', { value: 20, unit: 'px' });  // 줄간격 20px 설정
  • No labels