$(function() {
doc = new Editor.DocumentModel();
+ var editor = new EditorView('body', doc);
var splitView = new SplitView('#splitview', doc);
leftPanelView = new PanelContainerView('#left-panel-container', doc);
rightPanelContainer = new PanelContainerView('#right-panel-container', doc);
--- /dev/null
+/*global View render_template panels */
+var EditorView = View.extend({
+ _className: 'EditorView',
+ element: null,
+ model: null,
+ template: null,
+
+ init: function(element, model, template) {
+ this._super(element, model, template);
+ this.model.load();
+ }
+});
{# App and views #}
<script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
+ <script src="{{STATIC_URL}}js/views/editor.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/views/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
{% endblock %}
+{% block header-toolbar %}
+ <button>Merge</button> <button>Update</button>
+{% endblock %}
+
{% block maincontent %}
<div id="splitview">
<div id="left-panel-container" class='panel-container'></div>
{# <p><button type="button" class="dialog-close-button">Close</button></p> #}
{# </div> #}
{# </div> #}
-{% endblock maincontent %}
+{% endblock maincontent %}