mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
fixes #2945
This commit is contained in:
parent
15c9041f12
commit
d545630912
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,7 @@ var authorManager = require("./AuthorManager");
|
||||||
var sessionManager = require("./SessionManager");
|
var sessionManager = require("./SessionManager");
|
||||||
var async = require("async");
|
var async = require("async");
|
||||||
var exportHtml = require("../utils/ExportHtml");
|
var exportHtml = require("../utils/ExportHtml");
|
||||||
|
var exportTxt = require("../utils/ExportTxt");
|
||||||
var importHtml = require("../utils/ImportHtml");
|
var importHtml = require("../utils/ImportHtml");
|
||||||
var cleanText = require("./Pad").cleanText;
|
var cleanText = require("./Pad").cleanText;
|
||||||
var PadDiff = require("../utils/padDiff");
|
var PadDiff = require("../utils/padDiff");
|
||||||
|
@ -271,7 +272,8 @@ exports.getText = function(padID, rev, callback)
|
||||||
//the client wants the latest text, lets return it to him
|
//the client wants the latest text, lets return it to him
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
callback(null, {"text": pad.text()});
|
var padText = exportTxt.getTXTFromAtext(pad, pad.atext);
|
||||||
|
callback(null, {"text": padText});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue