Commit graph

8 commits

Author SHA1 Message Date
Ben Gotow 18d294c42f feat(transforms): Replace regexp body transforms with DOM approach
Summary:
We originally didn't do this because creating a DOM tree was loading images.
Using range.createContextualFragment seems to do it without the tree ever
being attached.

Accompanying changes to src/pro are here:
https://phab.nylas.com/D3300
https://github.com/nylas/edgehill/compare/bengotow/draft-dom-transformations?expand=1

Also rename applyTransformsToDraft => applyTransformsForSending. Needed
a new name because the function signature has changed. AFAIK there are no
open source plugins using the old functions.

Test Plan: All specs updated

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3299
2016-09-23 16:36:08 -07:00
Juan Tejada 7ed3e472dd fix(markdown): Update editor height 2016-09-01 20:21:13 -07:00
Juan Tejada 477e5f8c2c fix(markdown): Fix textarea bug (use our fork of simplemde)
- Textarea bug prevented us from typing in the markdown editor, almost
consistently. Seems to be a chrome bug
- Stop using textarea and use contenteditable instead via codemirror's
inputStyle option. Had to use our fork of simplemde to be able to pass that option
- Disable spellchecker also
2016-09-01 19:43:10 -07:00
Juan Tejada ae506d88f9 fix(markdown): Add setSelection method 2016-09-01 18:27:39 -07:00
Ben Gotow 263eb1349e Markdown support for quoted text / signatures 2016-09-01 17:31:59 -07:00
Juan Tejada 96e5c696a7 fix(markdown): Fix focusAbsoluteEnd 2016-09-01 16:52:55 -07:00
Juan Tejada 6b1b38a88c fix(markdown): Fix tabbing into composer 2016-09-01 16:44:53 -07:00
Jackie Luo cbf40f50c0 feat(markdown): Add Markdown composer 2016-08-30 19:23:01 -07:00