...
| Code Block | ||||
|---|---|---|---|---|
| ||||
var paragraphiframe = editor.getAPIModelById('id'); paragraphiframe.remove(); |
replace(html)
- html <String> 교체할 HTML String.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
var paragraphiframe = editor.getAPIModelById('id'); paragraphiframe.replace('<p><span>Paragraph replaced</span></p>'); |
...
- value<Number> 설정의 표의 높이값
- unit <String> 높이값의 단위 ('px', '%'). 기본값 'px'.
표의 IFrame의 높이를 설정합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var tableiframe = editor.getAPIModelById('id'); tableiframe.setHeight(200); tableiframe.setHeight(200, 'px'); |
setWidth(value[, unit = 'px'])
- value<Number> 설정의 표의 너비값
- unit <String> 너비값의 단위 ('px', '%'). 기본값 'px'.
표의 IFrame의 너비를 설정합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var tableiframe = editor.getAPIModelById('id'); tableiframe.setWidth(400); tableiframe.setWidth(100, '%'); |