1 [[!template id=plugin name=embed author="[[Joey]]"]]
4 This plugin allows embedding content from external sites on
7 Normally, the [[htmlscrubber]] does not allow the tags that are used for
8 embedding content from external sites, since `<iframe>`, `<embed>`, and
9 `<object>` tags can be used for various sorts of attacks. This plugin
10 allows such tags to be put on a page, if they look like they are safe.
12 In the examples below, the parts of the html that you can change are denoted
13 with "XXX"; everything else must appear exactly as shown to be accepted by the
18 Use html like this to embed a map:
20 <iframe width="XXX" height="XXX" frameborder="XXX" scrolling="XXXX" marginheight="XXXX" marginwidth="XXXX" src="http://maps.google.com/?XXX"></iframe>
22 (This method only allows embeddeding a simple map. To use the full
23 [Google Maps API](http://www.google.com/apis/maps/) from ikiwiki, including
24 drawing points and GPS tracks on the map, try the [[contrib/googlemaps]]
29 Use html like this to embed a video:
31 <object width="XXX" height="XXX"><param name="movie" value="http://www.youtube.com/v/XXX"></param><param name="wmode" value="transparent"></param>
32 <embed src="http://www.youtube.com/v/XXX" type="application/x-shockwave-flash" wmode="transparent" width="XXX" height="XXX"></embed></object>
36 Use html like this to embed a video:
38 <embed style="width:XXXpx; height:XXXpx;" id="XXX" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?XXX" flashvars=""></embed>
42 Use html like this to embed a calendar:
44 <iframe src="http://www.google.com/calendar/embed?XXX" style="border-width:XXX" width="XXX" frameborder="XXX" height="XXX"></iframe>