Preview Content Block Containing Javascript API
API Reference vce-preview-javascrpt
HTML Attributes API
Name | Description | Type | Required | Default value |
---|---|---|---|---|
content |
This string contains the HTML and javascript to display in the sandboxed iframe. The string becomes the value of the iframe srcdoc attribute. To change the innerHTML of the iframe, set the value of content. When content is changed, the value of the srcdoc attribute on the iframe is changed. |
string | true | '' |
iframe-width |
A String specifying the width of the iframe | string | Optional | 100% |
extra-class |
The value of extra-class is passed to the iframe and becomes the value of the class attribute on the iframe. | string | '' |