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

fix(IText): copypaste linebreaks #7526

Merged
merged 2 commits into from
Dec 3, 2021
Merged

Conversation

jzburns
Copy link
Contributor

@jzburns jzburns commented Nov 30, 2021

This is a fix for a copy and paste bug in the textfield object. Text that contains just newlines will though an exception when pasted. The fix tests this.styles[cursorLoc.lineIndex + i] && copiedStyle[0]) are both defined.


////////////////////// example ////////////////////// 

for() {
}

////////////////////// end example ////////////////////// 

close #6841

@ShaMan123 ShaMan123 changed the title Bugfix/copypaste fix(IText): copypaste linebreaks Dec 1, 2021
@asturur asturur merged commit c7bc5d7 into fabricjs:master Dec 3, 2021
rockerBOO pushed a commit to rockerBOO/fabric.js that referenced this pull request Jan 12, 2022
@asturur asturur mentioned this pull request Jan 26, 2022
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

Successfully merging this pull request may close these issues.

Exception thrown on copy and paste in Textbox
2 participants