mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +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 (context.lineContent === lineContent && lineContentFromHook !== true) {
|
||||
pieces.push(lineContentFromHook, ''); // Just to be compatible with plugins that are not updated to this solution
|
||||
var lcToTestTrue = lineContentFromHook;
|
||||
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 {
|
||||
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