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

Neverending wrapping of ordered and unordered lists by h1 and h2 #121

Open
cmajsmith opened this issue Jan 28, 2015 · 0 comments
Open

Neverending wrapping of ordered and unordered lists by h1 and h2 #121

cmajsmith opened this issue Jan 28, 2015 · 0 comments

Comments

@cmajsmith
Copy link

How to reproduce:

  1. Open demo page
  2. Select and remove everything
  3. Type new text, select it and format as any type of list
  4. Select this text and press h1/h2 formatting few times
  5. List gets wrapped by heading multiple times

There may be a couple of solutions involving regex and/or jQuery methods of cleaning the window.getSelection() from previous formatting, but I don't know which is better considering project philosophy assuming the most of formatting being using execCommand().

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

1 participant