...
Name | Type | Description |
---|---|---|
actionName | String | 액션 이름 |
html | Stringhtml | 삽입할 html을 설정합니다. |
insertType | String | html 삽입 방식을 설정합니다. 셀렉션 상태일 때 유효합니다.
|
overwriteStyle | boolean | 이전 텍스트의 스타일을 덮어쓸 것인지 여부 여부를 설정합니다. (기본값: false) |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('insertHTML', '<span>에디터</span>'); editor.execCommand('insertHTML', '<span>에디터</span>', 'overwrite'); editor.execCommand('insertHTML', '<span>에디터</span>', 'before'); editor.execCommand('insertHTML', '<span>에디터</span>', 'after'); editor.execCommand('insertHTML', '<span>에디터</span>', 'after', true); |
...