mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
135 lines
5 KiB
HTML
135 lines
5 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<title>EditSurface Demo</title>
|
|
<link rel="stylesheet" href="../modules/es/es.Surface.css">
|
|
<link rel="stylesheet" href="../modules/sandbox/sandbox.css">
|
|
<style>
|
|
body {
|
|
font-family: "Arial";
|
|
font-size: 1em;
|
|
width: 100%;
|
|
margin: 1em 0;
|
|
padding: 0;
|
|
overflow-y: scroll;
|
|
-webkit-user-select: none;
|
|
background-color: white;
|
|
}
|
|
#es-base {
|
|
margin: 2em;
|
|
-webkit-box-shadow: 0 0.25em 1.5em 0 #dddddd;
|
|
-moz-box-shadow: 0 0.25em 1.5em 0 #dddddd;
|
|
box-shadow: 0 0.25em 1.5em 0 #dddddd;
|
|
-webkit-border-radius: 0.5em;
|
|
-moz-border-radius: 0.5em;
|
|
-o-border-radius: 0.5em;
|
|
border-radius: 0.5em;
|
|
}
|
|
#es-panes {
|
|
border: solid 1px #cccccc;
|
|
border-top: none;
|
|
}
|
|
#es-visual {
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
}
|
|
#es-toolbar {
|
|
-webkit-border-radius: 0;
|
|
-moz-border-radius: 0;
|
|
-o-border-radius: 0;
|
|
border-radius: 0;
|
|
-webkit-border-top-right-radius: 0.25em;
|
|
-moz-border-top-right-radius: 0.25em;
|
|
-o-border-top-right-radius: 0.25em;
|
|
border-top-right-radius: 0.25em;
|
|
-webkit-border-top-left-radius: 0.25em;
|
|
-moz-border-top-left-radius: 0.25em;
|
|
-o-border-top-left-radius: 0.25em;
|
|
border-top-left-radius: 0.25em;
|
|
}
|
|
#es-toolbar.float {
|
|
left: 2em;
|
|
right: 2em;
|
|
top: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="es-base">
|
|
<div id="es-toolbar" class="es-toolbar">
|
|
<div style="clear:both"></div>
|
|
<div id="es-toolbar-shadow"></div>
|
|
</div>
|
|
<div id="es-panes">
|
|
<div id="es-visual">
|
|
<div id="es-editor"></div>
|
|
</div>
|
|
<div id="es-previews">
|
|
<div id="es-preview-wikitext" class="es-preview es-code"></div>
|
|
<div id="es-preview-json" class="es-preview es-code"></div>
|
|
<div id="es-preview-html" class="es-preview es-code"></div>
|
|
<div id="es-preview-render" class="es-preview es-render"></div>
|
|
<div id="es-preview-history" class="es-preview es-history"></div>
|
|
</div>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- EditSurface -->
|
|
<script src="../modules/jquery/jquery.js"></script>
|
|
<script src="../modules/es/es.js"></script>
|
|
<script src="../modules/es/es.Html.js"></script>
|
|
<script src="../modules/es/es.Position.js"></script>
|
|
<script src="../modules/es/es.Range.js"></script>
|
|
<script src="../modules/es/es.TransactionProcessor.js"></script>
|
|
|
|
<!-- Serializers -->
|
|
<script src="../modules/es/serializers/es.AnnotationSerializer.js"></script>
|
|
<script src="../modules/es/serializers/es.HtmlSerializer.js"></script>
|
|
<script src="../modules/es/serializers/es.JsonSerializer.js"></script>
|
|
<script src="../modules/es/serializers/es.WikitextSerializer.js"></script>
|
|
|
|
<!-- Bases -->
|
|
<script src="../modules/es/bases/es.EventEmitter.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentModelNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentBranchNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentLeafNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentModelBranchNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentModelLeafNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentViewNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentViewBranchNode.js"></script>
|
|
<script src="../modules/es/bases/es.DocumentViewLeafNode.js"></script>
|
|
|
|
<!-- Models -->
|
|
<script src="../modules/es/models/es.SurfaceModel.js"></script>
|
|
<script src="../modules/es/models/es.DocumentModel.js"></script>
|
|
<script src="../modules/es/models/es.ParagraphModel.js"></script>
|
|
<script src="../modules/es/models/es.PreModel.js"></script>
|
|
<script src="../modules/es/models/es.ListModel.js"></script>
|
|
<script src="../modules/es/models/es.ListItemModel.js"></script>
|
|
<script src="../modules/es/models/es.TableModel.js"></script>
|
|
<script src="../modules/es/models/es.TableRowModel.js"></script>
|
|
<script src="../modules/es/models/es.TableCellModel.js"></script>
|
|
<script src="../modules/es/models/es.HeadingModel.js"></script>
|
|
<script src="../modules/es/models/es.TransactionModel.js"></script>
|
|
|
|
<!-- Views -->
|
|
<script src="../modules/es/views/es.SurfaceView.js"></script>
|
|
<script src="../modules/es/views/es.ToolbarView.js"></script>
|
|
<script src="../modules/es/views/es.ContentView.js"></script>
|
|
<script src="../modules/es/views/es.DocumentView.js"></script>
|
|
<script src="../modules/es/views/es.ParagraphView.js"></script>
|
|
<script src="../modules/es/views/es.PreView.js"></script>
|
|
<script src="../modules/es/views/es.ListView.js"></script>
|
|
<script src="../modules/es/views/es.ListItemView.js"></script>
|
|
<script src="../modules/es/views/es.TableView.js"></script>
|
|
<script src="../modules/es/views/es.TableRowView.js"></script>
|
|
<script src="../modules/es/views/es.TableCellView.js"></script>
|
|
<script src="../modules/es/views/es.HeadingView.js"></script>
|
|
|
|
<!-- Demo -->
|
|
<script src="../modules/sandbox/sandbox.js"></script>
|
|
</body>
|
|
</html> |