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 misses the block-level changes. #15

Closed
shrikant-joshi opened this issue Sep 20, 2013 · 2 comments
Closed

Undo misses the block-level changes. #15

shrikant-joshi opened this issue Sep 20, 2013 · 2 comments

Comments

@shrikant-joshi
Copy link

Reproduction steps:

  1. Make a block-level change, e.g blockquote the first para.
  2. Make a word-level change, e.g. bold a letter or two, underline something.
  3. Make another block-level change, e.g. change the second para to h1.
  4. Hit Ctrl-Z (Winows/Linux) to undo.

Only the change that occurs in step 2 is undone.

PS: Great work, nonetheless! I was looking for something like this for the landing page on my site. :)

@daviferreira
Copy link
Member

The problem is undo only works with execCommand. So we need to change the way we create h1/q, using formatBlock, or implement the undo behavior manually.

@daviferreira
Copy link
Member

Should be fixed now

OmniaGM pushed a commit to OmniaGM/medium-editor that referenced this issue May 12, 2014
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