attachment list for links + bad links in red
[redakcja.git] / apps / wiki / templates / wiki / bootstrap.html
index 8428a60..4a479df 100644 (file)
                 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) {