The pad default text is now configurable in the settings file

This commit is contained in:
Peter 'Pita' Martischka 2011-05-19 22:46:19 +01:00
parent a72d68a4fe
commit 309d594a9a
3 changed files with 8 additions and 4 deletions

View file

@ -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, '');
}