mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Chat: Use a <textarea>
for message input
This commit is contained in:
parent
ce5ef9350f
commit
834e05fc9c
3 changed files with 8 additions and 3 deletions
|
@ -109,6 +109,7 @@
|
||||||
}
|
}
|
||||||
#chatinputbox #chatinput {
|
#chatinputbox #chatinput {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -388,7 +388,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="chatinputbox">
|
<div id="chatinputbox">
|
||||||
<form>
|
<form>
|
||||||
<input id="chatinput" type="text" maxlength="999" data-l10n-id="pad.chat.writeMessage.placeholder">
|
<textarea id="chatinput" maxlength="999" data-l10n-id="pad.chat.writeMessage.placeholder"></textarea>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -25,7 +25,9 @@ describe('Chat messages and UI', function () {
|
||||||
const username = helper.chatTextParagraphs().children('b').text();
|
const username = helper.chatTextParagraphs().children('b').text();
|
||||||
const time = helper.chatTextParagraphs().children('.time').text();
|
const time = helper.chatTextParagraphs().children('.time').text();
|
||||||
|
|
||||||
expect(helper.chatTextParagraphs().text()).to.be(`${username}${time} ${chatValue}`);
|
// TODO: The '\n' is an artifact of $.sendkeys('{enter}'). Figure out how to get rid of it
|
||||||
|
// without breaking the other tests that use $.sendkeys().
|
||||||
|
expect(helper.chatTextParagraphs().text()).to.be(`${username}${time} ${chatValue}\n`);
|
||||||
|
|
||||||
await helper.hideChat();
|
await helper.hideChat();
|
||||||
});
|
});
|
||||||
|
@ -46,7 +48,9 @@ describe('Chat messages and UI', function () {
|
||||||
const username = chat.children('b').text();
|
const username = chat.children('b').text();
|
||||||
const time = chat.children('.time').text();
|
const time = chat.children('.time').text();
|
||||||
|
|
||||||
expect(chat.text()).to.be(`${username}${time} ${chatValue}`);
|
// TODO: Each '\n' is an artifact of $.sendkeys('{enter}'). Figure out how to get rid of them
|
||||||
|
// without breaking the other tests that use $.sendkeys().
|
||||||
|
expect(chat.text()).to.be(`${username}${time} \n${chatValue}\n`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('makes chat stick to right side of the screen via settings, ' +
|
it('makes chat stick to right side of the screen via settings, ' +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue