XWR-190: Make CryptPad version with rtwiki/CodeMirror

This commit is contained in:
mouhb
2016-01-07 18:13:45 +01:00
parent 9a932a3f56
commit 9626dfc365
2 changed files with 882 additions and 3 deletions

View File

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