diff --git a/readme.md b/readme.md index ff1e9d693..f9bfa1ef9 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ Unity is Strength - Collaboration is Key ![and_so_it_begins.png](https://github.com/cjdelisle/cryptpad/raw/master/and_so_it_begins.png "We are the 99%") -CryptPad is a **zero knowledge** realtime collaborative editor. +CryptPad is the **zero knowledge** realtime collaborative editor. Encryption carried out in your web browser protects the data from the server, the cloud and the NSA. This project uses the [CKEditor] Visual Editor and the [ChainPad] realtime engine. The secret key is stored in the URL [fragment identifier] which is never sent to diff --git a/www/main.js b/www/main.js index 5808c41e9..fd9e0ac2d 100644 --- a/www/main.js +++ b/www/main.js @@ -8,6 +8,21 @@ define([ var Nacl = window.nacl; var $ = jQuery; + var INITIAL_STATE = [ + '

', + 'This is CryptPad, the zero knowledge realtime collaborative editor.', + '
', + 'What you type here is encrypted so only people who have the link can access it.', + '
', + 'Even the server cannot see what you type.', + '

', + '

', + '', + 'What you see here, what you hear here, when you leave here, let it stay here', + '', + '

', + ].join(''); + var module = { exports: {} }; var parseKey = function (str) { @@ -36,9 +51,9 @@ define([ removeButtons: 'Source,Maximize', }); editor.on('instanceReady', function () { - //editor.execCommand('maximize'); + editor.execCommand('maximize'); var ifr = window.ifr = $('iframe')[0]; - ifr.contentDocument.body.innerHTML = '

It works!

'; + ifr.contentDocument.body.innerHTML = INITIAL_STATE; var rtw = RTWysiwyg.start(window.location.href.replace(/#.*$/, '').replace(/^http/, 'ws'),