Add a preview of the markdown content in the code editor

This commit is contained in:
yflory committed 2017-05-18 12:16:26 +02:00
1 parent b72415b56b
commit 56bcdff890
6 files changed
+123 -126

No files matched your search

+4 -1
View File
@@ -2357,9 +2357,12 @@ define([
e.stopPropagation();
var path = $(this).data('path');
var onCreated = function (err, info) {
if (err && err === E_OVER_LIMIT) {
if (err === E_OVER_LIMIT) {
return void Cryptpad.alert(Messages.pinLimitDrive, null, true);
}
if (err) {
return void console.error("Unable to create the file", err);
}
module.newFolder = info.newPath;
refresh();
};