composer changeS

This commit is contained in:
Baris Soner Usakli
2014-01-17 16:16:00 -05:00
parent 51abf60b3a
commit 48eb6a3f22
3 changed files with 78 additions and 45 deletions

View File

@@ -63,6 +63,11 @@ SocketModules.composer.editCheck = function(socket, pid, callback) {
});
};
SocketModules.composer.renderPreview = function(socket, content, callback) {
var preview = require('marked')(content);
callback(null, preview);
}
/* Chat */
SocketModules.chats = {};