mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
This commit is contained in:
parent
8c85205a80
commit
69bf32cd46
1 changed files with 5 additions and 1 deletions
|
@ -455,7 +455,11 @@ function getHTMLFromAtext(pad, atext, authorColors)
|
||||||
|
|
||||||
if (lineContentFromHook)
|
if (lineContentFromHook)
|
||||||
{
|
{
|
||||||
pieces.push(lineContentFromHook, '');
|
if (context.lineContent === lineContent && lineContentFromHook !== true) {
|
||||||
|
pieces.push(lineContentFromHook, ''); // Just to be compatible with plugins that are not updated to this solution
|
||||||
|
} else {
|
||||||
|
pieces.push(context.lineContent, ''); // should be used instead of lineContentFromHook because context is passed through each hook with all it's updated from each plugin
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue