Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Add shims to the React View Editor - #2497

Merged
probablycorey merged 65 commits into
masterfrom
cj-add-react-editor-shims
Jun 11, 2014
Merged

probablycorey merged 65 commits into
masterfrom
cj-add-react-editor-shims

Conversation

@probablycorey

Copy link
Copy Markdown

🎲 WIP 🎲

If there are other parts of the API that break please respond to this issue with the package and the API it relies on.

EditorView

  • scrollView outlet is missing.
  • getEditor
  • getFirstVisibleScreenRow
  • getFontFamily
  • getFontSize
  • getLastVisibleScreenRow
  • getPageRows Ignoring this method, I couldn't find it used anywhere
  • getPane
  • highlightFoldsContainingBufferRange (could probably be removed from the API but it needs to be replaced in SelectionView)
  • isScreenRowVisible (could probably be removed from the API)
  • pageDown
  • pageUp
  • pixelPositionForBufferPosition
  • pixelPositionForScreenPosition
  • redraw
  • scrollToBottom
  • scrollToBufferPosition
  • scrollToCursorPosition
  • scrollToPixelPosition
  • scrollToScreenPosition
  • setFontFamily
  • setFontSize
  • setInvisibles (I think we could ignore this one, its not used and can be set via config)
  • setLineHeight
  • setPlaceholderText (this is only used by mini-editors and we are going to wait on implementing it)
  • setShowIndentGuide
  • setShowInvisibles
  • setSoftWrap
  • splitDown
  • splitLeft
  • splitRight
  • splitUp
  • toggleSoftTabs
  • toggleSoftWrap

Based on feedback from @abe33 and @smashwilson and anything I've run into personally.
Closes #2428

@nathansobo

Copy link
Copy Markdown
Contributor

@probablycorey Hello from the opposite time zone. Just thought I'd pile on to this PR with some fixes. I turned on the React editor in specs on this branch so we can get CI feedback.

@nathansobo

Copy link
Copy Markdown
Contributor

Btw, we can revert the spec helper change before we merge this. I don't think we need to get everything green on this branch, just everything that can be made green by adding a shim.

@probablycorey probablycorey self-assigned this Jun 5, 2014
Corey Johnson and others added 5 commits June 5, 2014 11:36
It is difficult to scroll through stack traces when there are huge
failure messages. This limits the length to 10 lines, if you hover 
over the message it will expand.

Somewhat related to #1173
I couldn’t recreate the problem with activation events mentioned
fa66689
@probablycorey

Copy link
Copy Markdown
Author

I'm ready to merge this.

@nathansobo

Copy link
Copy Markdown
Contributor

Sorry, we need to fix the SpacePen issue before we merge it. It was causing exceptions on master and I downgraded it there.

@nathansobo

Copy link
Copy Markdown
Contributor

@probablycorey Now I think we're ready to merge this thing.

…-shims

Conflicts:
	src/editor-component.coffee
probablycorey pushed a commit that referenced this pull request Jun 11, 2014
Add shims to the React View Editor
@probablycorey
probablycorey merged commit 4f77a37 into master Jun 11, 2014
@probablycorey
probablycorey deleted the cj-add-react-editor-shims branch June 11, 2014 16:06
@probablycorey
probablycorey restored the cj-add-react-editor-shims branch June 11, 2014 16:26
@probablycorey
probablycorey deleted the cj-add-react-editor-shims branch June 27, 2014 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing API on ReactEditorView

2 participants