Nathan Sobo
17f9cc49f2
Honor the center: true option in scrollTo* methods
...
Fixes #2648
2014-06-18 21:48:14 -06:00
probablycorey
468c6598db
Make sure the overlayer class is only used once.
...
Using it twice causes context menus with the .overlay selector to
appear twice.
Closes #2601
2014-06-18 13:24:15 -07:00
Ben Ogle
084632a985
Rename Selection(s)Component to Highlight(s)Component
2014-06-16 15:36:08 -07:00
Corey Johnson
4186a4943b
Remove react shims deprecations
2014-06-12 14:53:09 -07:00
Corey Johnson
4f77a371f4
Merge pull request #2497 from atom/cj-add-react-editor-shims
...
Add shims to the React View Editor
2014-06-11 09:06:40 -07:00
Ben Ogle
09b91974a7
Fix casing on Grim import
2014-06-11 08:52:36 -07:00
Nathan Sobo
64870c733b
Add API for enabling/disabling input to support vim-mode's insert mode
2014-06-11 06:07:41 -06:00
probablycorey
9e7e77bdf8
Merge remote-tracking branch 'origin/master' into cj-add-react-editor-shims
...
Conflicts:
src/gutter-component.coffee
2014-06-10 15:42:23 -07:00
probablycorey
f9c4af301d
Shim scrollView outlet
2014-06-10 15:19:54 -07:00
Corey Johnson
a227ed7586
Add toggleSoftWrap and toggleSoftTabs
2014-06-09 16:10:29 -07:00
Corey Johnson
0396aac11f
Add several setter shims to ReactEditorView
2014-06-09 16:03:20 -07:00
Corey Johnson
7379627fcb
Add several scroll shims to ReactEditorView
2014-06-09 15:37:02 -07:00
Corey Johnson
a2c4caf7ad
Move scroll methods below afterAttach method
2014-06-09 15:14:48 -07:00
Corey Johnson
e8b6fb919e
Add shim for ReactEditorView::redraw
2014-06-09 15:06:49 -07:00
Corey Johnson
601c877136
Add pageDown/pageUp to ReactEditorView
2014-06-09 14:46:47 -07:00
Ben Ogle
e7bd8026d2
Deprecate old class functions
2014-06-09 14:04:23 -07:00
Corey Johnson
362f696e3e
Add setFontFamily and setFontSize to ReactEditorView
2014-06-09 13:51:00 -07:00
Corey Johnson
677d3abe0e
Add ::getFontFamily
2014-06-09 13:51:00 -07:00
Nathan Sobo
8cf9e1990b
Add ReactEditorView::getModel shim
2014-06-09 13:47:36 -06:00
Nathan Sobo
b2253ab7ce
Add ReactEditorView::insertText shim
2014-06-09 13:32:42 -06:00
Nathan Sobo
6f3ebe8d0c
Add ReactEditorView::hiddenInput shim
2014-06-09 15:16:38 +09:00
Nathan Sobo
2f3d74c047
Merge branch 'master' into cj-add-react-editor-shims
...
Conflicts:
src/react-editor-view.coffee
2014-06-06 23:59:54 +09:00
Nathan Sobo
cae5cdc81c
Put the .editor class on the wrapper, not the component
...
Things depend on the react editor wrapper having the .editor class,
but inside the editor, we can control the style. I changed the
component's div to be .editor-contents for now. We can eliminate this
extra style when we eliminate the wrapper.
2014-06-06 23:52:35 +09:00
Nathan Sobo
fca6a7758b
Don't run afterAttach hooks twice on ReactEditorView
2014-06-06 16:46:14 +09:00
Nathan Sobo
7dae04b8d4
Add ReactEditorView::getText
2014-06-06 16:46:14 +09:00
Corey Johnson
d7ee81418d
Remove editor class form ReactEditorView, it is on EditorComponent
...
I couldn’t recreate the problem with activation events mentioned
fa66689c07
2014-06-05 14:13:41 -07:00
Nathan Sobo
2ee2efeb84
Add ReactEditorView::isFocused shim
2014-06-05 12:07:52 +09:00
Nathan Sobo
367e429162
Add ReactEditorView::setText
2014-06-05 12:03:56 +09:00
Nathan Sobo
8417dfd10e
Add the ReactEditorView::updateDisplay shim
2014-06-05 12:01:09 +09:00
Nathan Sobo
15d1c5f992
Add ReactEditorView::setWidthInChars shim
2014-06-05 11:59:02 +09:00
Nathan Sobo
e0b1a0cfa7
Add ReactEditorView::getFontSize
2014-06-05 11:58:48 +09:00
Nathan Sobo
cfd9baa0d6
Use Editor::getVisibleRowRange instead of the rendered row range
...
The rendered row range is larger than the visible row range to force the
DOM to break up repaints. This is a more accurate method to us.
2014-06-05 11:54:28 +09:00
probablycorey
1d80c35708
Add active property
2014-06-04 17:33:49 -07:00
probablycorey
ad88ace448
Add getFirstVisibleScreenRow and getFirstVisibleScreenRow
2014-06-04 17:18:00 -07:00
probablycorey
a6d870bf4c
Add underlayer an overlayer classes to the correct elements
2014-06-04 16:32:50 -07:00
Nathan Sobo
fa66689c07
Add .editor class to react wrapper for package activation events
2014-06-04 21:07:13 +09:00
Nathan Sobo
905b28975e
Add split methods
2014-06-04 21:06:41 +09:00
Nathan Sobo
7e5f667b31
Don't assume ::component is defined
2014-06-04 21:06:27 +09:00
Nathan Sobo
eeb44407e3
Add ReactEditorView::getModel
2014-06-04 19:15:56 +09:00
Corey Johnson
087b52c9b4
Remove unnecessary append method.
2014-06-03 17:13:23 -07:00
Corey Johnson
18f7297968
Use actual property for overlayer
2014-06-03 17:12:56 -07:00
Corey Johnson
3cd34e0b4d
Add gutter.getLineNumberElement shim
2014-06-03 15:25:26 -07:00
Corey Johnson
25e3e46166
Make overlayer a property
2014-06-03 14:57:46 -07:00
Corey Johnson
2c84d69ff2
Add overlayer shim
2014-06-03 14:40:30 -07:00
Corey Johnson
3fb28803b5
Add append shim
2014-06-03 14:40:17 -07:00
Corey Johnson
dac792a243
Remove .editor class from ReactEditorView
...
ReactEditorView and EditorComponent were using the editor class. This
caused context menus that used `.editor` as the selector to display
twice.
2014-06-03 11:36:55 -07:00
probablycorey
2df2254227
Remove trailing semi-colon
...
I drank too much javascript today…
2014-05-30 15:10:44 -07:00
probablycorey
f4d256eef2
Use buffer row data attribute to find gutter lines
2014-05-30 15:05:15 -07:00
Corey Johnson
4840987082
Add overlayer class to ReactEditorView
...
Closed #2442
2014-05-29 15:16:48 -07:00
Nathan Sobo
6448258f4e
Add shims to support find-and-replace marker views
2014-05-27 12:11:01 -06:00