mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Update src/node/utils/ExportHtml.js
Added a hook for utils/ExportHtml.js
This commit is contained in:
parent
df7d7769c8
commit
4d11e49878
1 changed files with 14 additions and 14 deletions
|
@ -402,20 +402,20 @@ function getHTMLFromAtext(pad, atext)
|
||||||
}
|
}
|
||||||
lists.length--;
|
lists.length--;
|
||||||
}
|
}
|
||||||
var newLineContent = hooks.callAllStr("getLineHTMLForExport",
|
var lineContentFromHook = hooks.callAllStr("getLineHTMLForExport",
|
||||||
{
|
{
|
||||||
line: line,
|
line: line,
|
||||||
apool: apool,
|
apool: apool,
|
||||||
attribLine: attribLines[i],
|
attribLine: attribLines[i],
|
||||||
text: textLines[i]
|
text: textLines[i]
|
||||||
}, " ", " ", "");
|
}, " ", " ", "");
|
||||||
if (newLineContent)
|
if (lineContentFromHook)
|
||||||
{
|
{
|
||||||
pieces.push(newLineContent, '');
|
pieces.push(lineContentFromHook, '');
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
pieces.push(lineContent, '<br>');
|
pieces.push(lineContent, '<br>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue