mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
88c4888872
'grunt build' builds modules/ve/test/index.php, demos/ve/index.php and .docs/eg-iframe.html from the associated *.template files. Got rid of the JS-based SVG/PNG switching logic. Instead, we now just use SVG unconditionally. We'd already dropped browser support for browsers that don't support SVG anyway. Change-Id: Iba2e68f17904687cb13e793a410e095f28f1b13c
34 lines
568 B
Plaintext
34 lines
568 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>VisualEditor Examples</title>
|
|
|
|
<!-- STYLES -->
|
|
|
|
<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>
|
|
<!-- SCRIPTS -->
|
|
</body>
|
|
</html>
|