mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 22:51:24 +08:00
FEATURE: Quote reply at cursor
This commit is contained in:
@ -57,6 +57,23 @@ test("appendText", function() {
|
||||
composer.appendText(" world");
|
||||
equal(composer.get('reply'), "hello world", "it appends text to existing text");
|
||||
|
||||
composer.clearState();
|
||||
composer.appendText("a\n\n\n\nb");
|
||||
composer.appendText("c",3,{block: true});
|
||||
|
||||
equal(composer.get("reply"), "a\n\nc\n\nb");
|
||||
|
||||
composer.clearState();
|
||||
composer.appendText("ab");
|
||||
composer.appendText("c",1,{block: true});
|
||||
|
||||
equal(composer.get("reply"), "a\n\nc\n\nb");
|
||||
|
||||
composer.clearState();
|
||||
composer.appendText("\nab");
|
||||
composer.appendText("c",0,{block: true});
|
||||
|
||||
equal(composer.get("reply"), "c\n\nab");
|
||||
});
|
||||
|
||||
test("Title length for regular topics", function() {
|
||||
|
Reference in New Issue
Block a user