mirror of
https://github.com/discourse/discourse.git
synced 2025-07-14 01:10:53 +08:00
FIX: when quoting add a newline
so **highlight** > quote Does not end like: [quote] test [quote]~
This commit is contained in:
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user