mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-13 02:05:07 +00:00
Added Ginny's stylesheet permanently to the archive
Work on 'failed to find dimensions of image' bug, which only happens under Tomcat. Not yet resolved.
This commit is contained in:
parent
9ac1ba1bba
commit
4fee2959ca
7 changed files with 584 additions and 37 deletions
|
|
@ -39,7 +39,7 @@
|
|||
Smeagol wiki engine {{version}} ||
|
||||
<img height="16" width="16"
|
||||
alt="The Web Engineering Factory & Toolworks"
|
||||
src="http://www.weft.scot/images/weft.logo.64.png">
|
||||
src="https://www.weft.scot/images/weft.logo.64.png">
|
||||
Developed by <a href="http://www.weft.scot/">WEFT</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -22,14 +22,15 @@
|
|||
</p>
|
||||
<p class="widget">
|
||||
<label for="submit-button">{% i18n save-prompt %}</label>
|
||||
<input name="submit-button" id="submit-button" type="submit" class="action" value="{% i18n save-label %}"/>
|
||||
<input name="submit-button" id="submit-button" type="submit"
|
||||
class="action" value="{% i18n save-label %}"/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
// intercept control-S (or on Mac meta-S) and submit the form. Saves much annoyance.
|
||||
/* intercept control-S (or on Mac meta-S) and submit the form. Saves much annoyance. */
|
||||
document.addEventListener("keydown", function(e) {
|
||||
if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
|
||||
if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
|
||||
e.preventDefault();
|
||||
document.getElementById('edit-form').submit();
|
||||
}
|
||||
|
|
@ -37,6 +38,9 @@
|
|||
// initialise the editor
|
||||
var simplemde = new SimpleMDE({
|
||||
autosave: {
|
||||
/* there's an unlovely bug that if you have two Smeagol instances on the same host,
|
||||
* and you edit their files in the same browser, the autosave gets confused as to
|
||||
* which site the autosave buffer belongs to. Better to disable in that case? */
|
||||
enabled: true,
|
||||
uniqueId: "Smeagol-{{page}}",
|
||||
delay: 1000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue