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

Undo/redo inconsistency when replacing chunk of content with multiple formats #889

Closed
cutteroid opened this issue Aug 25, 2016 · 2 comments

Comments

@cutteroid
Copy link

Undo/redo chain become inconsistent when replacing chunk of editors content (wich has multiple formats) with text

  1. Visit quilljs.com
  2. Select all content in editor and input letter (Q for example)
  3. Hit Undo
  4. Hit Redo. Notice that q letter is now in code block
  5. Hit Undo again. Notice how initial content has changed

Expected behavior: Undo/redo history works correctly

Actual behavior: Editor content is altered after some undo/redo operations

Version: 1.0.0-rc.2

undo_redo

Also on certain conditions i'm getting
Uncaught TypeError: Cannot read property 'mutations' of undefined
when replacing part of editors content with text in Chrome browser.
Maybe it is related to described undo/redo problem.

chrome_bug

@sachinrekhi
Copy link
Contributor

@jhchen In the commit fix you mention you made a change to the Delta format? Does that mean the rich-text Delta library changed to accommodate this change?

@jhchen
Copy link
Member

jhchen commented Aug 30, 2016

No the editor's behavior is changed to exhibit what delta already does, so rich-text stays the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants