mediawiki-extensions-Visual.../.docs/eg-iframe.tpl
Timo Tijhof ed9477aa5b docsgen: Fix error on Ubuntu
When running this on Mac, it works fine.
But when running it on Ubuntu in labs, the condition
checking for "VE-LOAD" head and body always evaluate to false.

Not sure what's up with that, but since these lines no longer
contain whitespace, a straight comparison is all we need.

Also removed the duplicate `<head>` tag in the template.

Change-Id: Ic7e8351e784be35fd0104269be331cf9bd0c08b4
2010-01-05 23:27:55 +01:00

32 lines
569 B
Smarty

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>VisualEditor Examples</title>
{{VE-LOAD-HEAD}}
<script>
function loadInlineExample(code, options, callback) {
try {
eval(code);
callback && callback(true);
} catch (e) {
document.body.appendChild(document.createTextNode(e));
callback && callback(false, e);
}
}
</script>
<style>
body {
margin: 0;
padding: 0;
overflow-y: scroll;
background: #fff;
font: normal 1em/1.5 sans-serif;
}
</style>
</head>
<body>
{{VE-LOAD-BODY}}
</body>
</html>