<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>embed</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="../style.css" type="text/css" /> <link rel="stylesheet" href="../local.css" type="text/css" /> </head> <body> <div class="page"> <div class="pageheader"> <div class="header"> <span> <span class="parentlinks"> <a href="../index.html">ikiwiki</a>/ <a href="../plugins.html">plugins</a>/ </span> <span class="title"> embed </span> </span> </div> </div> <div id="pagebody"> <div id="content" role="main"> <p><span class="infobox"> Plugin: embed<br /> Author: <span class="createlink">Joey</span><br /> Included in ikiwiki: yes<br /> Enabled by default: no<br /> Included in <a href="./goodstuff.html">goodstuff</a>: no<br /> Currently enabled: no<br /> </span></p> <p>This plugin allows embedding content from external sites on wiki pages.</p> <p>Normally, the <a href="./htmlscrubber.html">htmlscrubber</a> does not allow the tags that are used for embedding content from external sites, since <code><iframe></code>, <code><embed></code>, and <code><object></code> tags can be used for various sorts of attacks. This plugin allows such tags to be put on a page, if they look like they are safe.</p> <p>In the examples below, the parts of the html that you can change are denoted with "XXX"; everything else must appear exactly as shown to be accepted by the plugin.</p> <p><strong>This plugin is deprecated.</strong> Rather than relying on these complex lists of safe content, which constantly fall out of date, you're recommended to configure the <a href="./htmlscrubber.html">htmlscrubber</a> to not scrub some pages, which only trusted users can edit. Then you can embed anything from anywhere on those pages. See <a href="../tips/embedding_content.html">embedding content</a> for details and examples. This plugin's lists of safe embedded content will not be maintained, and the plugin will be removed in a future release.</p> <h2>google maps</h2> <p>Use html like this to embed a map:</p> <pre><code><iframe width="XXX" height="XXX" frameborder="XXX" scrolling="XXXX" marginheight="XXXX" marginwidth="XXXX" src="http://maps.google.com/?XXX"></iframe> </code></pre> <p>(This method only allows embeddeding a simple map. To use the full <a href="http://www.google.com/apis/maps/">Google Maps API</a> from ikiwiki, including drawing points and GPS tracks on the map, try the <a href="./contrib/googlemaps.html">googlemaps</a> plugin.)</p> <h2>youtube</h2> <p>Use html like this to embed a video:</p> <pre><code><object width="XXX" height="XXX"><param name="movie" value="http://www.youtube.com/v/XXX"></param><param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/XXX" type="application/x-shockwave-flash" wmode="transparent" width="XXX" height="XXX"></embed></object> </code></pre> <h2>google video</h2> <p>Use html like this to embed a video:</p> <pre><code><embed style="width:XXXpx; height:XXXpx;" id="XXX" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?XXX" flashvars=""></embed> </code></pre> <h2>google calendar</h2> <p>Use html like this to embed a calendar:</p> <pre><code><iframe src="http://www.google.com/calendar/embed?XXX" style="border-width:XXX" width="XXX" frameborder="XXX" height="XXX"></iframe> </code></pre> </div> </div> <div id="footer" class="pagefooter" role="contentinfo"> <div id="pageinfo"> <div class="tags"> Tags: <a href="./type/html.html" rel="tag">type/html</a> </div> <div class="pagedate"> Last edited <span class="date">Tue Feb 26 23:01:54 2019</span> <!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> --> </div> </div> <!-- from ikiwiki --> </div> </div> </body> </html>