Skip to content

Improve editable.getContent() #74

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

Merged
merged 43 commits into from
Aug 28, 2014
Merged

Improve editable.getContent() #74

merged 43 commits into from
Aug 28, 2014

Conversation

peyerluk
Copy link
Member

Allow to pass in document fragments. The idea is to make it easier to work with the document fragments that are returned by cursor.before() and cursor.after(). The split event also passes a before and after document fragment.

peyerluk added 30 commits August 6, 2014 10:28
Otherwise we are triggering too many editable.focus events.
This spec fails as long as a saved range adds an invisible
non-breaking empty space. As of now this space is not ignored by
the extract text and highlight match methods. And removing the space
breaks the current merge implementation since the stored cursor position
will be remove during a merge without it.
@peyerluk peyerluk self-assigned this Aug 15, 2014
@peyerluk peyerluk merged commit f746647 into master Aug 28, 2014
@peyerluk peyerluk deleted the get-content branch October 7, 2014 13:03
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.

3 participants