mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
21 lines
521 B
HTML
21 lines
521 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>VisualEditor Examples</title>
|
||
|
<script>
|
||
|
function loadInlineExample(code, options, callback) {
|
||
|
try {
|
||
|
document.body.innerHTML = '';
|
||
|
eval(code);
|
||
|
callback && callback(true);
|
||
|
} catch (e) {
|
||
|
document.body.innerHTML = document.createTextNode(e);
|
||
|
callback && callback(false, e);
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body></body>
|
||
|
</html>
|