Tim Abbott
6e048c5d3f
copy_and_paste: Enable copy-paste handler in production.
...
Now that we've fixed the issues we encountered when first testing
this, we can try it out in production again.
2018-03-11 15:26:27 -07:00
Sampriti Panda
90c89dcc5a
copy_and_paste: Fix quirks with some parts of toMarkdown.
...
* Raw links don't use the proper markdown syntax and get pasted as is.
* Text in Ordered List format are not escaped like in normal markdown.
2018-02-22 08:26:45 -08:00
Tommy Ip
6e22847548
refactor: new message content -> compose textarea.
2017-11-28 12:53:40 -08:00
Garvit
b9826e9067
Add filters for toMarkdown to paste data to compose-box.
...
This fixes bugs with pasting headings and italic styling.
Fixes #7485 .
2017-11-28 09:56:48 -08:00
Rishi Gupta
83149a953a
copy paste: Turn off toMarkdown in production.
...
At least until some of the TODOs at the bottom of
node_tests/copy_and_paste.js are done.
2017-11-27 16:44:16 -08:00
Tim Abbott
4d4532a27e
copy_and_paste: Add a simple extensible test suite.
...
This commit is mostly about adding the test suite; some of the results
are things we'd like to change.
2017-11-23 12:59:01 -08:00
Garvit
52069998eb
compose: Preserve links when pasting html.
...
This uses the to-markdown.js library to do all the hard work of
parsing HTML and turning it into markdown and not e.g. uploaded files.
Tweaked by tabbott to better scope when it activates to just include
pastes of HTML content.
Fixes #5853 .
2017-11-21 19:52:47 -08:00
Cory Lynch
274cabff98
Remove instances of deprecated jQuery "bind".
...
They have been replaced with "on".
2017-07-24 10:47:16 -07:00
Rafid Aslam
45f39be37f
lint: Fix many no-unused-vars eslint rule violations.
...
These have been carefully audited by tabbott to ensure they are
unlikely to cause regressions.
2016-12-14 21:34:51 -08:00
Rafid Aslam
7856217a63
Migrate JS modules to CommonJS style.
...
Closes #1488 .
2016-12-07 16:11:52 -08:00
AZtheAsian
5e9918135b
eslint: change quote-props from off to error and fix violations.
2016-12-02 18:35:53 -08:00
AZtheAsian
9c0ebc7359
eslint: change no-else-return to error and fix violations
2016-12-02 14:43:09 -08:00
AZtheAsian
ed0bc831be
eslint: change one-var from warning to error and fix violations
2016-12-02 11:25:16 -07:00
kevv87
e6369fc29b
eslint: change no-plusplus from warning to 2 and fix violations.
2016-12-01 14:27:17 -08:00
Tommy Ip
7b2c313f37
eslint: change brace-style from warning to error and fix violations.
2016-12-01 10:20:22 -08:00
Tim Abbott
c35781d505
lint: Require folding of } on same line as else statements.
2016-06-09 14:02:49 -07:00
Steve Howell
16faed0a83
Create copy_and_paste.js (with code from ui.js).
...
(imported from commit 37a06af5489e7da5196e5710f384d1f5a7ee7578)
2014-03-14 20:48:59 -04:00