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 initial value #2008

Closed
volser opened this issue Mar 8, 2018 · 2 comments
Closed

Undo initial value #2008

volser opened this issue Mar 8, 2018 · 2 comments

Comments

@volser
Copy link

volser commented Mar 8, 2018

Steps for Reproduction

  1. Visit https://quilljs.com/
  2. Select bubbleEditor or fullEditor (first or last dots)
  3. press Cmd+z

Expected behavior:
Do not clear initial content

Actual behavior:
Content is cleared

Platforms:
Any

Version:
1.3.5

I know about histiry.userOnly but its not applicable, since there are many other 'api' changes, except initial value

@volser
Copy link
Author

volser commented Mar 8, 2018

found solution

editor.setContents(...);
editor.history.clear();

is it correct way?

@benbro
Copy link
Contributor

benbro commented Mar 11, 2018

Yes, that's correct.

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

No branches or pull requests

2 participants