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
Textareas don't have user line breaks when screenshotted #83
Comments
It is still an issue, there has been no patch to position texts within The issue is evident on https://github.com/niklasvh/html2canvas/blob/master/src/Parse.js#L717 |
Ok thanks - what would the lazy solution entail? I haven't looked in detail into modifying your code so forgive me if this is a stupid question. I tried converting the endline characters /n/r into unicode line feed characters which can be passed into createTextNode() but it didn't seem to make any difference. |
You would probably need to measure the position for each line and render them accordingly. |
I‘ve found a solution here: http://stackoverflow.com/questions/22317823/html2canvas-remove-multiple-spaces-and-line-break But I use angular and I must find out the
|
maybe we can only replace textarea to div before use html2canvas?and after that changge the div back |
I solved this problem by using this function:
Paste the function before call html2canvas and your problem will by solved :) |
Hi -
If I put in text with returns in it, the screenshot doesn't contain the returns [just looks collapsed in a string with the carriage returns]. I lasted pulled this code a few [say 3] mos ago. Has that been fixed or is it still an issue?
The text was updated successfully, but these errors were encountered: