캐럿이 위치한 문단의 태그를 설정합니다.
문단을 셀렉션한 경우 셀렉션한 모든 문단에 태그를 설정합니다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:
Name | Type | Description |
---|---|---|
actionName | String |
'setParaTagName' tag name setting API | ||
value | String | 'P', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6' |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('setParaTagName', 'P'); // Set 일반as 문단으로normal 설정paragraph editor.execCommand('setParaTagName', 'H1'); // 제목1로Set as 설정Title1 editor.execCommand('setParaTagName', 'H2'); // Set 제목2로as 설정Title2 |