fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Editor update - edumed exercises
[redakcja.git]
/
apps
/
wiki
/
templates
/
wiki
/
bootstrap.html
diff --git
a/apps/wiki/templates/wiki/bootstrap.html
b/apps/wiki/templates/wiki/bootstrap.html
index
73e47ca
..
03f8d4c
100644
(file)
--- a/
apps/wiki/templates/wiki/bootstrap.html
+++ b/
apps/wiki/templates/wiki/bootstrap.html
@@
-329,6
+329,14
@@
['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 + '/'; },
@@
-338,6
+346,13
@@
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: [