| Vendor | MindTouch |
| Type | Extension |
| Categories | Advanced |
| Requires | MindTouch 1.8.2 or later |
| OS Restriction | None |
| Status | Stable |
| License | Free/Open Source |
| SID (service id) | sid://mindtouch.com/2007/06/html.unsafe |
| Assembly | mindtouch.deki.services |
This extension contains functions for embedding unsafe HTML.
See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.
Functions:
Embed custom HTML code.
Parameters:
| Name | Type | Description |
| innerhtml | str | An inner html fragment. |
Samples:
| Output | |
| To embed a button that displays a dialog when clicked:
<input type="button"
name="click"
value="Click Me"
onclick='alert("Hello World!")' /> |
Embed iframe element.
Parameters:
| Name | Type | Description |
| uri | uri | Source URI. |
| width | num | Optional. Width (default: 425) |
| height | num | Optional. Height (default: 350) |
| border | bool | Optional. Border (default: false) |
| marginwidth | num | Optional. Marginwidth (default: 0) |
| marignheight | num | Optional. Marginheight (default: 0) |
| scrolling | bool | Optional. Scrolling (default: false) |
Samples:
| Output | ||
|
Only unsafe.iframe seems to support properties such as scroll bars edited 23:57, 13 Mar 2008