Add javascript to canvas. #4764
Answered
by
rajevar
ronaldohoch
asked this question in
Q&A
-
Hi Arthur and other contributors! Is there a way to set a javascript code to the Canvas and grapesjs save it in the final html export? Just for context, i need to create some animations merging animate.css with wow.js |
Beta Was this translation helpful? Give feedback.
Answered by
rajevar
Dec 1, 2022
Replies: 1 comment
-
this would add the js to the canvas. I dont think it will get added to the final html export, you might have to add by code.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ronaldohoch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this would add the js to the canvas. I dont think it will get added to the final html export, you might have to add by code.
editor.Canvas.getDocument().body.insertAdjacentHTML( 'afterend', "<script src='myscripts.js'></script>" );