mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
quotes should keep new lines
This commit is contained in:
@ -104,6 +104,8 @@ export function selectedText() {
|
||||
$div.find(".clicks").remove();
|
||||
// replace emojis
|
||||
$div.find("img.emoji").replaceWith(function() { return this.title; });
|
||||
// replace br with newlines
|
||||
$div.find("br").replaceWith(() => "\n")
|
||||
|
||||
return String($div.text()).trim();
|
||||
}
|
||||
|
Reference in New Issue
Block a user