Add a pad creation page
This commit is contained in:
@@ -373,13 +373,19 @@ define([
|
||||
nThen(function (waitFor) {
|
||||
UI.addLoadingScreen();
|
||||
SFCommon.create(waitFor(function (c) { common = c; }));
|
||||
}).nThen(function (waitFor) {
|
||||
if (!AppConfig.displayCreationScreen) { return; }
|
||||
if (common.getMetadataMgr().getPrivateData().isNewFile) {
|
||||
console.log('newFile');
|
||||
common.getPadCreationScreen(Toolbar, waitFor());
|
||||
}
|
||||
}).nThen(function (waitFor) {
|
||||
cpNfInner = common.startRealtime({
|
||||
// really basic operational transform
|
||||
patchTransformer: options.patchTransformer || ChainPad.SmartJSONTransformer,
|
||||
|
||||
// cryptpad debug logging (default is 1)
|
||||
// logLevel: 0,
|
||||
// logLevel: 2,
|
||||
validateContent: options.validateContent || function (content) {
|
||||
try {
|
||||
JSON.parse(content);
|
||||
|
||||
Reference in New Issue
Block a user