-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Text in input or textarea not capturing text. #1347
Comments
I used the latest version of the test there is the same problem |
Fixed in 79e1c85 |
Text's not showing up for me when capturing a |
yes @hacknug it was fixed and still working for me. Please show us your snippet so that we can help you better. |
Hi, @hasanAli9t JS
Full code is here: Perhaps, canvas.toDataURL() should not be used? Thanks. |
This not working for me as well, it captures the screenshot of input box but that does have the value typed into the box. As a workaround, I get the value from input box into a div and then capture that div |
hi aarangara, can you please share more on how you were able to achieve the workaround? - did the text show in the text area with your approach in the image you captured? having the same issue in angular perhaps because angular is sanitizing the input text. |
Please what exactly is the solution to this? |
I checked that Github link provided but did not find the solution. However, I checked my CSS file and it happened that I gave a styling like this to my images:
When I removed this styling, I started seeing the text on the capture. |
Hello,
I am trying to capture div with image and textarea text(user input) in it. but it show me only image which is in div and showing blank text which is inside the same div. Cannot able to figure out how to capture text with latest version.
Thank you for any help!
I am trying to capture that on blur. when user input and focus out/blur it should capture text.
Here is code i am trying :
$(document).on('blur', '.image-text', function(event) {
var divTakeSnapshot = '.book-layouts';
var setTakenSnapshot = '.thumbnail-preview';
html2canvas($('.class').find('.div-class-to-take-snapshot').then(function(canvas) {
$('.class').find('.div-class-to-set-snapshot').attr('src', canvas.toDataURL("image/png"));
});
it capturing blank textarea. but showing image.
The text was updated successfully, but these errors were encountered: