-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
In Google Chrome, when toggling a list item (ie: on-off-on or bullet-number-bullet) the original style is lost #5
Comments
Oh man, that style garbage is just ridiculous. Chrome, chrome, chrome 👎 Thank you for letting me know, I'm going to release a patch where at least that style "style="font-size: 1.2em; line-height: 1.428571429;" trash is taken out. As for the spans, that will have to wait a bit. I would suggest perhaps submitting a bug to http://code.google.com/p/chromium/issues/list about the spans wrapping the text when execCommand is used for Unordered lists. Until then, thank you for letting me know! I really appreciate it! |
You are awesome! Thanks Darcy! |
…r#30, textAngular#19 Updates the fix introduced in textAngular#5 to be more specific and less of a catch all. Changed version to v1.1.2
…r#30, textAngular#19 Updates the fix introduced in textAngular#5 to be more specific and less of a catch all. Changed version to v1.1.2
I know this is old, but I got here via the related chromium issue (using the pell editor). I've tracked this down to the existence of a style that contains a
which resulted in a additional span wrapper with attribute Hope this helps anyone who stumbles across this! |
This problem does not occur in FF 24.0
I tested this on Google Chrome
Version 30.0.1599.69 m
and also onVersion 32.0.1667.0 canary Aura
.When I toggle a list item such as one in the demo: http://textangular.com/, I see a
span
element wrapped around the text node like:Perhaps it is a bug with
execCommand
on Chrome that textAngular needs to work around?Markup at beginning:
After putting cursor in the line with item 1 and clicking ordered list.
Continuing to toggle ordered list does not wrap the text() node with an additional
span
element.As mentioned in description, similar behaviour occurs when toggling between unordered list and ordered list too.
The text was updated successfully, but these errors were encountered: