Page tree

Versions Compared

Key

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

캐럿이 위치한 문단의 태그를 설정합니다.

문단을 셀렉션한 경우 셀렉션한 모든 문단에 태그를 설정합니다Set tag name of the paragraph in which the caret is positioned.

When there is a selection, tag name of the selected paragraphs is set.


Parameters:

NameTypeDescription
actionNameString
액션 이름
'setParaTagName' tag name setting API
valueString

'P', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6'


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('setParaTagName', 'P');  // Set 일반as 문단으로normal 설정paragraph
editor.execCommand('setParaTagName', 'H1'); // 제목1로Set as 설정Title1
editor.execCommand('setParaTagName', 'H2'); // Set 제목2로as 설정Title2