When I drag the block to the canvas, the component will indeed have the script attached to itself. However, when I reload the page, the script is no longer there.
I've seen multiple issues where this is discussed, and they all seem to be resolve by adding
Hi all. Thanks for creating and maintaining this amazing project. 🙏
Bug Description
I have a block that inserts a script as specified here: https://grapesjs.com/docs/modules/Components-js.html#basic-scripts
When I drag the block to the canvas, the component will indeed have the script attached to itself. However, when I reload the page, the script is no longer there.
I've seen multiple issues where this is discussed, and they all seem to be resolve by adding
Examples: https://github.com/artf/grapesjs/issues/1123 https://github.com/artf/grapesjs/issues/837 https://github.com/artf/grapesjs/issues/721
However,
allowScripts: 1
doesn't seem to be working for me.Expected
I expect the Githubissues.