mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: when quoting add a newline
so **highlight** > quote Does not end like: [quote] test [quote]~
This commit is contained in:
parent
ae68795d82
commit
64d54bc549
1 changed files with 2 additions and 1 deletions
|
@ -589,9 +589,10 @@ export default Ember.Component.extend({
|
|||
|
||||
if (post.length > 0) {
|
||||
post = post.replace(/^\n*/, "\n\n");
|
||||
} else {
|
||||
post = "\n";
|
||||
}
|
||||
|
||||
|
||||
const value = pre + text + post;
|
||||
const $textarea = this.$('textarea.d-editor-input');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue