[Question] How can I export including code inside <script></script?>
Question
Hi, the <a href="https://github.com/artf/grapesjs-code-editor/">code editor plugin</a> only limits me to preview the HTML & CSS and if I try to add <script></script> .. it's gone?
Answers (1)
Do you have allowScripts enabled for your editor?
const editor = grapesjs.init({ ... allowScripts: 1, });
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3119
[QUESTION] How to create custom block made of grapesjs components?
Hi, i want to have custom blocks made of grapesjs components. I found solution how to add components: https://github.com/artf/grapesjs/issu...
Issue #1609
Grapesjs, How to extract html/css code in view code into console log?
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #1248
Appending a button inside the default (code view) modal.
This is not actually an issue. I would like to add a button inside the original code view modal, it's like zip download button that @artf a...
Issue #6152
BUG: CSS added via custom code persists after custom code component is removed
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link https://grapesj...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.