tutorial in editor (mechanics only)
[redakcja.git] / apps / wiki / templates / wiki / bootstrap.html
index b6fdf06..cdbb426 100644 (file)
             <script type="text/javascript">less = {relativeUrls: true};</script>
             <script src="{% static 'wiki/editor/libs/less-1.3.3.min.js' %}"></script>
             <script src="{% static 'wiki/editor/libs/require.js' %}" data-main="{% static 'wiki/editor/src/editor/entrypoint.js' %}" ></script>
+            <script src="{% static 'wiki/editor/libs/jquery-1.9.1.min.js' %}"></script>
+            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
         {% else %}
             <link href="{% static 'wiki/build/rng.css' %}" rel="stylesheet">
             <script src="{% static 'wiki/build/rng.js' %}"></script>
         {% endif %}
+        <script src="{% static 'js/catalogue/catalogue.js' %}"></script> {# for tutorial #}
     </head>
     <body>
         <script type="text/javascript">
                     fields: [
                     ],
                     revision_field_name: '{{forms.text_publish.revision.html_name}}'
-                }
+                },
 
+                tutorial: [
+                    {name: 'editor', text: 'e'},
+                    {name: 'sourceEditor', text: 's'},
+                    {name: 'history', text: 's'},
+                    {name: 'switchToHeader', text: 's'},
+                    {name: 'switchToParagraph', text: 's'},
+                    {name: 'switchToImage', text: 's'},
+                    {name: 'switchToVideo', text: 's'},
+                    {name: 'toggleBulletList', text: 's'},
+                    {name: 'toggleEnumList', text: 's'},
+                    {name: 'emphasis', text: 's'},
+                    {name: 'cite', text: 's'},
+                    {name: 'link', text: 's'},
+                    {name: 'showMetadataEditor', text: 's'},
+                    {name: 'preview', text: 's'},
+                    {name: 'attachments', text: 's'},
+                    {name: 'draft', text: 's'},
+                    {name: 'comment', text: 's'}, // needs to be set manually in comments.html :(
+                    {name: 'save', text: 's'},
+                    {name: 'mainpage', text: 's'},
+                    {name: 'exit', text: 's'}
+                ]
             };
 
             {% if can_pubmark %}