Tommy Ip
5ee6c608c0
message edit: Allow uploading files.
...
Fixes : #198 .
2018-03-05 10:42:38 -08:00
Shubham Dhama
bfcfe84bdd
compose: Append space when text added at the end of textarea.
...
This appends a space when text is inserted at the end of a message
using `compose_ui.insert_syntax_and_focus`. This is definitely what
users expect when using this feature.
Fixes : #8569 .
2018-03-04 13:16:17 -08:00
Steve Howell
36ade63d84
compose: Fix bug in undo operation
...
This fixes compose.test_video_link_compose_clicked to just
use a stub for compose_ui.insert_syntax_and_focus.
It also adds direct tests for compose_ui.insert_syntax_and_focus.
Fixes #6362
2017-12-10 04:10:18 -08:00
Tommy Ip
6e22847548
refactor: new message content -> compose textarea.
2017-11-28 12:53:40 -08:00
Tim Abbott
9fa58a3c16
compose_ui: Automatically resize textarea after adding new syntax.
...
This fixes existing problems as well as an upcoming problem that
copy-and-pasting in markdown should usually expand the compose text
area.
2017-11-21 19:52:47 -08:00
Steve Howell
d7254a0556
Append space as needed in compose_ui.smart_insert().
2017-11-09 09:49:20 -08:00
Steve Howell
f935afa241
Prepend space as needed in compose_ui.smart_insert().
2017-11-09 09:49:20 -08:00
Steve Howell
1b1858aa64
node tests: Test compose_ui.smart_insert().
2017-11-09 09:49:20 -08:00
Steve Howell
12dc567a89
Move insert_syntax_and_focus() to compose_ui.js.
...
This change also removes a couple lines of test code that
weren't really testing anything.
2017-11-09 09:49:20 -08:00
Mahim Goyal
6464514ca9
Break compose.js and drafts.js dependency.
2017-05-08 14:43:49 -07:00