mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
fix to ether/etherpad-lite#2486
This commit is contained in:
parent
69bf32cd46
commit
c36a3264fe
1 changed files with 4 additions and 2 deletions
|
@ -455,8 +455,10 @@ function getHTMLFromAtext(pad, atext, authorColors)
|
||||||
|
|
||||||
if (lineContentFromHook)
|
if (lineContentFromHook)
|
||||||
{
|
{
|
||||||
if (context.lineContent === lineContent && lineContentFromHook !== true) {
|
var lcToTestTrue = lineContentFromHook;
|
||||||
pieces.push(lineContentFromHook, ''); // Just to be compatible with plugins that are not updated to this solution
|
lcToTestTrue = lcToTestTrue.replace(/true/g, '').replace(/ /g, '');
|
||||||
|
if (context.lineContent === lineContent && lcToTestTrue.length) { // Just to be compatible with plugins that are not updated to this solution
|
||||||
|
pieces.push(lineContentFromHook, '');
|
||||||
} else {
|
} 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
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue