mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 11:12:01 +01:00
boop
This commit is contained in:
parent
378ed02269
commit
c798a27ad8
1 changed files with 4 additions and 3 deletions
|
@ -419,13 +419,14 @@ function getHTMLFromAtext(pad, atext, authorColors)
|
||||||
text: textLines[i]
|
text: textLines[i]
|
||||||
}
|
}
|
||||||
|
|
||||||
// first context below seems superfluos
|
// See https://github.com/ether/etherpad-lite/issues/2486
|
||||||
hooks.aCallAll("asyncLineHTMLForExport", context, function(err, newLineFunction){
|
hooks.aCallAll("asyncLineHTMLForExport", context, function(err, newLineFunction){
|
||||||
|
// For each function returned by the hook call
|
||||||
|
// Process the text based on the function
|
||||||
newLineFunction.forEach(function(fn){
|
newLineFunction.forEach(function(fn){
|
||||||
context.lineContent = fn(context); // note the fn
|
context.lineContent = fn(context); // note the fn
|
||||||
});
|
});
|
||||||
//new Line Content is an array of each of the responses from aCallAll..
|
// We now have a line that has been processed by each hook function
|
||||||
// We should return a function to it
|
|
||||||
lineContent = context.lineContent; // modified lineContent here
|
lineContent = context.lineContent; // modified lineContent here
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue