...
| Code Block |
|---|
|
var cellshape = editor.getAPIModelById('id');
cellshape.append('<span>TEXT</span>'); |
...
| Code Block |
|---|
|
var cellshape = editor.getAPIModelById('id');
cellshape.prepend('<span>TEXT</span>'); |
...
| Code Block |
|---|
|
var paragraphshape = editor.getAPIModelById('id');
paragraphshape.remove(); |
replace(html)
- html <String> 교체할 HTML String.
...
| Code Block |
|---|
|
var paragraphshape = editor.getAPIModelById('id');
paragraphshape.replace('<p><span>Paragraph replaced<<p><span>Quote replaced</span></p>'); |
setHTML(html)
- html <String> 도형 내부에 설정할 HTML 문자열
파라메터로 넘겨받은 HTML 문자열값을 도형의 내부 HTML로 설정합니다.
| Code Block |
|---|
|
var shape = editor.getAPIModelById('id');
shape.setHTML('<p><span>HTML를 추가합니다. 기존에 입력된 내용은 모두 지워집니다.</span></p>'); |
setText(text)
- text <String> 셀 도형 내부에 설정할 Text 문자열
파라메터로 넘겨받은 Text 문자열값을 셀의 도형의 내부 Text로 설정합니다.
| Code Block |
|---|
|
var cell shape = editor.getAPIModelById('id');
cellshape.setText('텍스트입니다.'); |