1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 13:10:24 +02:00

Update for Editor Drivers Abstraction (#61)

This commit is contained in:
Alexander Skvortsov
2021-02-26 16:20:07 -05:00
committed by GitHub
parent b06f6470e7
commit d4db946c31
4 changed files with 50 additions and 45 deletions

View File

@@ -20,7 +20,8 @@ function insertMention(post, composer, quote) {
Array(precedingNewlines).join('\n') + // Insert up to two newlines, depending on preceding whitespace
(quote
? '> ' + mention + quote.trim().replace(/\n/g, '\n> ') + '\n\n'
: mention)
: mention),
false
);
}