The API model used to edit the IFrame.
Removes the Element itself.
var iframe = editor.getAPIModelById('id'); iframe.remove(); |
Replaces the element itself with the HTML String passed as an argument.
var iframe = editor.getAPIModelById('id'); iframe.replace('<span>Iframe replaced</span>'); |
Sets the height of the IFrame.
var iframe = editor.getAPIModelById('id'); iframe.setHeight(200); iframe.setHeight(200, 'px'); |
Sets the width of the IFrame.
var iframe = editor.getAPIModelById('id'); iframe.setWidth(400); iframe.setWidth(100, '%'); |