...
- html <String> 추가할 HTML String.
파라메터로 인자로 넘겨받은 HTML String으로 Element의 뒤쪽에 자식으로 추가합니다.
...
- html <String> 추가할 HTML String.
파라메터로 인자로 넘겨받은 HTML String으로 Element의 앞쪽에 자식으로 추가합니다.
...
remove()
Element 자신을 제거합니다.
| Status | ||||||
|---|---|---|---|---|---|---|
|
| Code Block | ||||
|---|---|---|---|---|
| ||||
var fieldset = editor.getAPIModelById('id');
fieldset.remove(); |
...
- html <String> 교체할 HTML String.
Element 자신을 파라메터로 인자로 넘겨받은 HTML String으로 교체합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var paragraphfieldset = editor.getAPIModelById('id'); paragraphfieldset.replace('<p><span>Paragraph<p><span>Fieldset replaced</span></p>'); |
setHTML(html)
- html <String> 설정할 HTML 문자열
인자로 넘겨받은 HTML 문자열값을 Fieldset의 내부 HTML로 설정합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var fieldset = editor.getAPIModelById('id');
fieldset.setHTML('<p><span>HTML를 추가합니다. 기존에 입력된 내용은 모두 지워집니다.</span></p>'); |
setText(text)
- text <String> 셀 내부에 설정할 Text 문자열
파라메터로 인자로 넘겨받은 Text 문자열값을 셀의 Fieldset의 내부 Text로 설정합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var cellfieldset = editor.getAPIModelById('id'); cellfieldset.setText('텍스트입니다.'); |