-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Styles not working with enter key when selectionStart != selectionEnd #1402
Comments
Looks correct to me in dev Chrome. Which browser are you seeing it on? |
I have fixed this on mine, I believe all I did was change itext_behavior.mixin.js to the following. However my version is so much different from your version now I can not be for sure and it is not tested on your version of the code. I had to add text wrapping and make it it does not scale for my project, so there are many other differences between our code.
|
Hm, I can't reproduce it on Chrome 37 on Mac, so it might be Windows issue. I'll check it when I get a chance. |
I'm able to reproduce this on Chrome on Mac. See https://monosnap.com/file/Xda4BpQ0R0gtSnIAG9mpBZlD2Efumw. |
I just tried in Chrome on Mac and still not seeing this exact issue. I only see extra space added on the next line when pressing enter. |
If you select some text and then hit the enter key it will remove the text and create a line break however the styles are not correct anymore.
For example got to http://fabricjs.com/test/misc/itext.html highlight the red 'e' in the first box then press enter.
The text was updated successfully, but these errors were encountered: