This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Add shims to the React View Editor - #2497
Merged
Merged
Conversation
The autosave package uses $.Event.targetView on a node that's managed by React. This upgrade to SpacePen allows us to retrieve the containing SpacePen view.
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. |
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. |
These exceptions break specs when simulateDomAttachment is used. They were only present to ensure correct sequencing during development of the react editor, so it's safe to remove them for now.
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.
added 12 commits
June 9, 2014 14:01
This reverts commit be20148.
Author
|
I'm ready to merge this. |
Contributor
|
Sorry, we need to fix the SpacePen issue before we merge it. It was causing exceptions on master and I downgraded it there. |
This reverts commit b46ac90.
…-shims Conflicts: src/gutter-component.coffee
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎲 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
scrollViewoutlet is missing.getPageRowsIgnoring this method, I couldn't find it used anywhereBased on feedback from @abe33 and @smashwilson and anything I've run into personally.
Closes #2428