IFrame extends Element
IFrame을 편집하는데 사용되는 API 모델입니다.
Methods
remove()
Element 자신을 제거합니다.
var paragraph = editor.getAPIModelById('id'); paragraph.remove();
replace(html)
- html <String> 교체할 HTML String.
Element 자신을 파라메터로 넘겨받은 HTML String으로 교체합니다.
var paragraph = editor.getAPIModelById('id'); paragraph.replace('<p><span>Paragraph replaced</span></p>');
setHeight(value[, unit = 'px'])
- value<Number> 설정의 표의 높이값
- unit <String> 높이값의 단위 ('px', '%'). 기본값 'px'.
표의 높이를 설정합니다.
var table = editor.getAPIModelById('id'); table.setHeight(200); table.setHeight(200, 'px');
setWidth(value[, unit = 'px'])
- value<Number> 설정의 표의 너비값
- unit <String> 너비값의 단위 ('px', '%'). 기본값 'px'.
표의 너비를 설정합니다.
var table = editor.getAPIModelById('id'); table.setWidth(400); table.setWidth(100, '%');