mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 05:44:32 +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
@ -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…
x
Reference in New Issue
Block a user