Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Problem with text selection ending outside the container div #89

Closed
wants to merge 1 commit into from

Conversation

devalnor
Copy link
Contributor

#88

@daviferreira
Copy link
Member

Not sure if this is the best solution. What happens when we have multiple instances of the Editor? Also, we need to unbind it when we deactivate the editor.

@devalnor
Copy link
Contributor Author

I don't thing that actually Medium-Editor is working correctly with multiple editor with the same classname.
So this is a quick fix.

devalnor added a commit to devalnor/medium-editor that referenced this pull request Nov 18, 2013
- Improve getSelectionElement() to work in any cases and fixed the bug on multi element selection.
- Fix Issue yabwe#88 & yabwe#89
- Refactor the fix for yabwe#86 (sorry for that but I don’t understand why to bind mousedown is required. This execute checkSelection() twice. So I tried to merge both code for a better and clean code. Hope it’s ok)
- Improved binding for multiple editor instance. checkSelection() is called only one time per instance.
- Improved allowMultiParagraphSelection filter by removing empty tags elements before counting and consider header tags has a paragraph too (same as medium).
nysk pushed a commit to nysk/medium-editor that referenced this pull request Aug 10, 2015
- Improve getSelectionElement() to work in any cases and fixed the bug on multi element selection.
- Fix Issue yabwe#88 & yabwe#89
- Refactor the fix for yabwe#86 (sorry for that but I don’t understand why to bind mousedown is required. This execute checkSelection() twice. So I tried to merge both code for a better and clean code. Hope it’s ok)
- Improved binding for multiple editor instance. checkSelection() is called only one time per instance.
- Improved allowMultiParagraphSelection filter by removing empty tags elements before counting and consider header tags has a paragraph too (same as medium).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants