...
| Code Block |
|---|
|
var paragraph = editor.getAPIModelById('id');
paragraph.replace('<p><span>Paragraph replaced</span></p>'); |
setHTML(html)
- html <String> 인용기호 내부에 설정할 HTML 문자열
파라메터로 넘겨받은 HTML 문자열값을 인용기호의 내부 HTML로 설정합니다.
| Code Block |
|---|
|
var quote = editor.getAPIModelById('id');
quote.setHTML('<p><span>HTML를 추가합니다. 기존에 입력된 내용은 모두 지워집니다.</span></p>'); |
setText(text)
- text <String> 셀 <String> 인용기호 내부에 설정할 Text 문자열
파라메터로 넘겨받은 Text 문자열값을 셀의 인용기호의 내부 Text로 설정합니다.
| Code Block |
|---|
|
var cellquote = editor.getAPIModelById('id');
cellquote.setText('텍스트입니다.'); |