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

When creating a list, selecting bold (or italic) when no text has been written yet causes the list to break. #62

Open
szm1 opened this issue Nov 20, 2017 · 0 comments

Comments

@szm1
Copy link

szm1 commented Nov 20, 2017

Type the following into a fresh instance of the editor in chrome:

This is a point

Using the keyboard or mouse select the entire line. Press the numbered list button. Hit enter and a number 2 should appear below. Without typing anything, press the bold button. The text "strong text" gets inserted between the 1. list item and the 2. list item. Type:

This is another point

Then hit enter once. The 2. label will disappear. Hit enter again, the cursor will move to the next line but will be indented. You could keep doing this for ages and each time the cursor would move to the next line and be indented. However, instead of typing anything, hit enter on the empty line. The cursor will move inline with "This is another point". Hitting enter twice more will delete the entire list.

I would expect pressing the bold button on an empty line to not break the list. Anything after that is probably because the editor is in some sort of broken state but could probably be looked into as well.

I have tested this on both the demo site (https://bevacqua.github.io/woofmark/), and a version I downloaded from npm (version 4.2.3).

Running on chrome:
woofmarklistbold

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