Nathan Sobo
03fc4e1b98
Remove unused React references
2015-02-23 13:08:50 -08:00
Nathan Sobo
7033b27207
Make EditorComponent a plain JS object rather than a React component
2015-02-19 17:14:57 -07:00
Nathan Sobo
32a1854b7c
Use TextEditorPresenter::state.content.indentGuidesVisible
2015-02-03 15:05:16 -07:00
Nathan Sobo
5a4cf01083
Move getFirst/LastVisibleScreenRow to the view
2015-01-14 20:02:49 -07:00
Nathan Sobo
eee31c3e8c
Don’t use component property for TextEditorView::mini shim
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-12 17:56:47 -07:00
Nathan Sobo
7f9d06f55b
Move TextEditor::pixelPositionForScreen/BufferPosition to view layer
...
It doesn’t make sense to talk about pixels at the model layer long-term,
even though we currently store view dimension information in the model
so we don’t have to read from the DOM for optimization purposes. This
information is only available if the view is attached, however, making
these methods a liability on the model layer.
2015-01-09 08:22:45 -08:00
Nathan Sobo
b5edefcae8
Trigger editor:will-be-removed from SpacePen shim, not component
...
By the time the component is getting unmounted, we have already called
remove hooks on the SpacePen shim so subscriptions to the event have
been removed.
2014-11-20 11:13:40 -07:00
Ben Ogle
7fd9c75d24
Hide the space pen views in the docs
2014-11-19 14:15:18 -08:00
Ben Ogle
89ab0becc2
💄
2014-11-11 11:25:36 -08:00
Nathan Sobo
9690e44ffe
Correctly handle focus when shadow DOM is disabled
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-04 16:37:27 -07:00
Nathan Sobo
0e57ede712
Only create a shadow root if editor.useShadowDOM config setting is true
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-04 16:37:27 -07:00
Nathan Sobo
dd17e8f018
Replace focusout event handlers on hiddenInput shim with blur handlers
...
The focusout event doesn’t seem to work for elements in the shadow DOM.
Other people seem to share this experience:
https://code.google.com/p/chromium/issues/detail?id=378163#c7
2014-11-04 16:37:26 -07:00
Nathan Sobo
adaf1829da
Determine focus using document.activeElement instead of component state
2014-11-04 16:37:26 -07:00
Nathan Sobo
5cc243ec11
Inject both underlayer and overlayer via shadow DOM insertion points
2014-11-04 16:37:25 -07:00
Nathan Sobo
c64a4b7ca9
Fallback to light DOM in TextEditorView::find if nothing found in shadow
2014-11-04 16:37:25 -07:00
Nathan Sobo
ab846a2495
Put views appended via appendToLinesView in the light DOM
...
This adds an insertion point to the lines div via a <content> tag,
allowing immediate children of the editor tag to be positioned relative
to the lines div but still be styled via global CSS.
2014-11-04 16:37:24 -07:00
Nathan Sobo
866f2d9a76
Fix appendToLinesView
2014-11-04 16:37:24 -07:00
Nathan Sobo
3b455c00d3
Proxy TextEditorView::find calls to the root inside the shadow DOM
2014-11-04 16:37:24 -07:00
Nathan Sobo
2321aa2bee
Get SpacePen outlet shims from inside shadow DOM
2014-11-04 16:37:23 -07:00
Nathan Sobo
ee9284e228
Use ‘atom-pane’ custom tag name for PaneElement
2014-10-09 07:39:13 -07:00
Nathan Sobo
1ca479877e
Null guard ::element in TextEditorView::component synthetic property
2014-10-08 12:13:13 -07:00
Nathan Sobo
49e22a41b2
Assign attributes passed to TextEditorView constructor
2014-10-08 12:13:13 -07:00
Nathan Sobo
4eff0f82d8
Destroy model if TextEditorView is explicitly removed for compatibility
2014-10-08 12:13:13 -07:00
Nathan Sobo
003b67ee19
Add TextEditorElement and make TextEditorView a wrapper around it
...
This is the next step on converting all internal views to custom
elements instead of using SpacePen. The TextEditorElement instances
are associated with ::__spacePenView fields that are used for supporting
legacy access paths via atom.workspaceView.
2014-10-08 12:13:13 -07:00
Ben Ogle
98e828b337
Move default schema into config-default-schema.coffee
2014-09-29 16:09:46 -07:00
Ben Ogle
832b4ae4d8
Fix specs
2014-09-29 16:08:03 -07:00
Ben Ogle
969ca048e8
Fix specs
2014-09-29 16:08:03 -07:00
Ben Ogle
0bb8821644
Editor config uses a schema
2014-09-29 16:08:03 -07:00
Nathan Sobo
b5fc4aec84
Re-render component when EditorView is reattached
...
Fixes #3640
2014-09-26 15:15:23 -06:00
Lee Dohm
2c3bec7468
Add ability to scroll past the end of the file
...
Fixes #3592
2014-09-25 23:04:54 -07:00
Ben Ogle
683d0d1b16
Editor -> TextEditor
2014-09-25 15:14:29 -07:00
Ben Ogle
82c53b539a
editor.coffee -> text-editor.coffee
2014-09-25 15:14:29 -07:00
Ben Ogle
c2f44efe31
editor-view -> text-editor-view
2014-09-25 15:14:29 -07:00