Update Codepad with the latest improvements

This commit is contained in:
Yann Flory
2016-04-11 14:43:39 +02:00
parent 692fe24b32
commit c53baab99d
7 changed files with 253 additions and 5304 deletions

View File

@@ -1,10 +1,10 @@
define([
'/api/config?cb=' + Math.random().toString(16).substring(2),
'/code/rtwiki.js',
'/code/rt_codemirror.js',
'/common/messages.js',
'/common/crypto.js',
'/bower_components/jquery/dist/jquery.min.js'
], function (Config, RTWiki, Messages, Crypto) {
], function (Config, RTCode, Messages, Crypto) {
var $ = window.jQuery;
var ifrw = $('#pad-iframe')[0].contentWindow;
@@ -36,7 +36,7 @@ define([
editor.setValue(Messages.codeInitialState);
var rtw =
RTWiki.start(ifrw,
RTCode.start(ifrw,
Config.websocketURL,
Crypto.rand64(8),
key.channel,