Forum Discussion
Storyline360, Animation and GSAP ( Greensock )
@Jurgen I have an unrelated question, I want to copy code from a textbox into clipboard on the users machine.
My workaround at the moment is to pull the code from a text variable and then copy into the clipboard and that works, is there any way to use the contents of a textbox in storyline or am I chasing the impossible?
What I have works just wanted to make it an elegant solution.
This gets all text in a given Storyline document.const collection = document.getElementsByClassName("vector-text-item");
And then with gsap.getProperty you can get anything you want.... thus also the text.let someText = gsap.getProperty(collection[0], "textContent");console.log("someText : "+someText );
Ofcourse you can target any single textfield by using a more specific selector.