Closed RiyaThete closed 6 years ago
What is the name of the plugin?
The 3rd last import plugin .It is available on http://grapesjs.com/demo.html
try to run editor.getJs()
. see if it returns the previous imported JS.
You have to set allowScripts
to true
grapesjs.init({
...
allowScripts: true,
})
@artf Thank you so much ... you saved me from writing a workaround for it.
Hello @artf,
How we can get the particular script based on selected element as provided code "editor.getJs()" provides all the script contained in the HTML page.
I want to get all the selected element script like when we click on section then all the scripts contained in that section need to fetch.
Thanks in advance.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Whenever I import, using import plugin, javascript part of the code is deleted. Is there any way to preserve it? I want to used the exported html file directly, but cannot use it now because javascript is missing in it