Use the CodeMirror editor in the slide application

This commit is contained in:
Yann Flory
2016-09-30 17:39:16 +02:00
parent b5b0eacebc
commit 2609af2105
61 changed files with 3553 additions and 426 deletions

View File

@@ -14,6 +14,7 @@ define([
content: [],
changeHandlers: [],
};
var ifrw = $('#pad-iframe')[0].contentWindow;
var $modal;
var $content;
Slide.setModal = function ($m, $c) {
@@ -149,7 +150,7 @@ define([
Slide.draw(i);
};
$(document).on('keyup', function (e) {
$(ifrw).on('keyup', function (e) {
if (!Slide.shown) { return; }
switch(e.which) {
case 37: