Mailspring/spec/components
Evan Morikawa d18642fb3e refactor(contenteditable): new ContenteditableExtension API
Summary:
This provides a new API for `ContenteditableExtension`s. Instead of
manually manipulating the raw DOM and `Selection` objects, there's a new
`Editor` interface that encapsulates it and provides helper methods.

You can now do:

      editor.select(someNode).createLink("foo").collapseToEnd()

Now raw methods like `execCommand` ONLY show up in the `Editor` interface
as well as most of the raw `Selection` APIs.

There are also more integration tests :)

Another major goal was cleaning up the contenteditable file itself. To
that end:

1. The DOMNormalizer got pulled out into its own extension
1. The TabManager is now its own extension
1. Url wrangling got moved into the FloatingToolbar control
1. There is now the concept of a `ContenteditableService`, which are
tightly-couple blocks of code separated out into logical units. These are
dependent on the core state, innerState, and props and are not full
extensions.
1. `MouseService` now handles all the click event logic
1. `ClipboardService` was modified to the new service architecture

Test Plan: script/grunt run-integration-tests

Reviewers: drew, juan, bengotow

Reviewed By: juan, bengotow

Differential Revision: https://phab.nylas.com/D2367
2015-12-21 19:58:01 -08:00
..
clipboard-service-spec.coffee refactor(contenteditable): new ContenteditableExtension API 2015-12-21 19:58:01 -08:00
contenteditable-component-spec.cjsx refactor(contenteditable): use DOM mutation observers 2015-12-01 15:31:03 -08:00
editable-list-spec.jsx fix(editable-list): Prevent empty selection on esc pressed + other fixes 2015-12-14 14:29:45 -08:00
evented-iframe-spec.cjsx refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
multiselect-list-interaction-handler-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
multiselect-split-interaction-handler-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
tokenizing-text-field-spec.cjsx refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00