-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bug: HR (horizontal divider) duplicating many times on enter key #89
Comments
Hi Luka, I will look into this. What browser are you using? |
Apologies for late reply. Ive tested on two versions and both have same issue: More info:There are actually multiple HR DOM elements, its not just a visual bug of the first (actual) HR. And if you select a line with one of those 'fake' HRs (doesnt have to be last/first one) you can do one of following :
So it seems like the editor script keeps duplicating any HR , even the fake ones, if you press enter. Unless its on the last line, for some reason. And if you instead type text, it deletes the (fake) HR on that line. Fake HRs contain a BR inside them, real HR has *** in it. And if you delete the original HR line (where you have ***) , the fake HRs still exist. (ive changed the HR width and *** font size, issue is same with original.css) Another curious thing, you may type more than 3 asterisks and its still an HR |
the issue was that the CSS class on the inserted line didn't get removed because the editor code thought the line was unchanged (because it was still blank). Fixed in v0.1.31. This should fix any related issues in Firefox because it wasn't specific to the HR, but rather an issue in how Firefox handles new paragraphs differently than Chromium or WebKit. Regarding this:
The CommonMark spec, which I am following as closely as possible, says "three or more".
|
Im using the basic example setup of hosted and simplest example with toolbar (default editor and command bar).
This seems to always happen when typing "***" except on the last line of editor.
To replicate:
you will get endlessly replicating dividers on all the new lines you make, until you enter some text.
The text was updated successfully, but these errors were encountered: