documentHistoryUrl: function(id) { return '/editor/history/' + id + '/'},
documentDiffUrl: function(id) { return '/editor/diff/' + id + '/'; },
documentRestoreUrl: function(id) { return '/editor/revert/' + id + '/'},
+ documentGalleryUrl: '{% url "catalogue_book_gallery" slug %}',
documentAttachmentUrl: function(attachmentName) {
return '{{MEDIA_URL}}{{IMAGE_DIR}}{{gallery}}/' + attachmentName;
},
{% autoescape off%}
var data = {{serialized_document_data}};
+ var materials = {{materials}};
{%endautoescape%}
var editor_init = function(Editor) {