The pad default text is now configurable in the settings file
This commit is contained in:
parent
a72d68a4fe
commit
309d594a9a
|
@ -2,8 +2,7 @@ var Changeset = require("../Changeset");
|
|||
var AttributePoolFactory = require("../AttributePoolFactory");
|
||||
var db = require("../db").db;
|
||||
var async = require("async");
|
||||
|
||||
exports.startText = "Welcome to Etherpad Lite. This pad text is synchronized as you type, so that everyone viewing this page sees the same text.";
|
||||
var settings = require('../settings');
|
||||
|
||||
/**
|
||||
* Copied from the Etherpad source code, don't know what its good for
|
||||
|
@ -130,7 +129,7 @@ Class('Pad', {
|
|||
//this pad doesn't exist, so create it
|
||||
else
|
||||
{
|
||||
var firstChangeset = Changeset.makeSplice("\n", 0, 0, exports.cleanText(exports.startText));
|
||||
var firstChangeset = Changeset.makeSplice("\n", 0, 0, exports.cleanText(settings.defaultPadText));
|
||||
|
||||
_this.appendRevision(firstChangeset, '');
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ exports.port = 9001;
|
|||
exports.dbType = "sqlite";
|
||||
exports.dbSettings = { "filename" : "../var/sqlite.db" };
|
||||
exports.logHTTP = true;
|
||||
exports.defaultPadText = "Welcome to Etherpad Lite!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nEtherpad Lite on Github: http:\/\/j.mp/ep-lite\n";
|
||||
|
||||
//read the settings sync
|
||||
var settingsStr = fs.readFileSync("../settings.json").toString();
|
||||
|
|
|
@ -21,5 +21,9 @@ This file must be valid JSON. But comments are allowed
|
|||
}
|
||||
*/
|
||||
|
||||
"logHTTP" : true
|
||||
//if true, every http request will be loged to stdout
|
||||
"logHTTP" : true,
|
||||
|
||||
//the default text of a pad
|
||||
"defaultPadText" : "Welcome to Etherpad Lite!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nEtherpad Lite on Github: http:\/\/j.mp/ep-lite\n"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue