mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
Revert 'asyncLineHTMLForExport' hook
This commit is contained in:
parent
aca745ddf6
commit
4c64b7a670
2 changed files with 1 additions and 46 deletions
|
@ -419,18 +419,6 @@ function getHTMLFromAtext(pad, atext, authorColors)
|
|||
text: textLines[i]
|
||||
}
|
||||
|
||||
// See https://github.com/ether/etherpad-lite/issues/2486
|
||||
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){
|
||||
context.lineContent = fn(context); // note the fn
|
||||
});
|
||||
// We now have a line that has been processed by each hook function
|
||||
lineContent = context.lineContent; // modified lineContent here
|
||||
});
|
||||
|
||||
// Old hook probably not to be used..
|
||||
var lineContentFromHook = hooks.callAllStr("getLineHTMLForExport", context, " ", " ", "");
|
||||
|
||||
if (lineContentFromHook)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue