Editor update - edumed exercises
[redakcja.git] / apps / wiki / templates / wiki / bootstrap.html
index 73e47ca..03f8d4c 100644 (file)
                     
                     ['core.template'],
                     ['core.showMetadataEditor'],
                     
                     ['core.template'],
                     ['core.showMetadataEditor'],
+                    [
+                        'core.insertOrderExercise',
+                        'core.insertChoiceSingleExercise',
+                        'core.insertChoiceMultiExercise',
+                        'core.insertChoiceTrueOrFalseExercise',
+                        'core.insertGapsExercise',
+                        'core.insertReplaceExercise'
+                    ]
                 ],
                 
                 documentSaveUrl: function(id) { return '/editor/text/' + id + '/'; },
                 ],
                 
                 documentSaveUrl: function(id) { return '/editor/text/' + id + '/'; },
                 documentAttachmentUrl: function(attachmentName) {
                     return '{{MEDIA_URL}}{{IMAGE_DIR}}{{slug}}/' + attachmentName;
                 },
                 documentAttachmentUrl: function(attachmentName) {
                     return '{{MEDIA_URL}}{{IMAGE_DIR}}{{slug}}/' + attachmentName;
                 },
+                documentUrl: function(id, version) {
+                    var url = '{% url 'wiki_editor' slug %}'
+                    if(version) {
+                        url = url + '?version=' + version;
+                    }
+                    return url;
+                },
 
                 documentSaveForm: {
                     fields: [
 
                 documentSaveForm: {
                     fields: [