IFrame extends Element

IFrame을 편집하는데 사용되는 API 모델입니다.

Methods

remove()

Element 자신을 제거합니다.

var iframe = editor.getAPIModelById('id');
iframe.remove();

replace(html)

Element 자신을 인자로 넘겨받은 HTML String으로 교체합니다.

var iframe = editor.getAPIModelById('id');
iframe.replace('<span>Iframe replaced</span>');

setHeight(value[, unit = 'px'])

IFrame의 높이를 설정합니다.

var iframe = editor.getAPIModelById('id');
iframe.setHeight(200);
iframe.setHeight(200, 'px');

setWidth(value[, unit = 'px'])

IFrame의 너비를 설정합니다.

var iframe = editor.getAPIModelById('id');
iframe.setWidth(400);
iframe.setWidth(100, '%');