mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
ed9477aa5b
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
32 lines
569 B
Smarty
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>
|