/*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
-var documentsUrl = '/api/documents/';
-
-
Editor.Model = Editor.Object.extend({
synced: false,
data: null
Editor.ToolbarButtonsModel = Editor.Model.extend({
- _className: 'Editor.ToolbarButtonsModel',
+ className: 'Editor.ToolbarButtonsModel',
serverURL: '/api/toolbar/buttons',
buttons: {},
var leftPanelView, rightPanelContainer, doc;
-$(function() {
+$(function()
+{
+ documentsUrl = $('#api-base-url').text() + '/';
+ Editor.ToolbarButtonsModel.serverURL = $('#api-toolbar-url').text();
+
doc = new Editor.DocumentModel();
var editor = new EditorView('#body-wrap', doc);
editor.freeze();