.. it's gone?","answerCount":1,"author":{"@type":"Person","name":"HarryChristianR","url":"https://github.com/HarryChristianR"},"dateCreated":"2019-10-23T07:23:46Z","dateModified":"2019-10-29T22:23:58Z","acceptedAnswer":{"@type":"Answer","text":"Do you have allowScripts enabled for your editor? const editor = grapesjs.init({ ... allowScripts: 1, });","dateCreated":"2019-10-25T02:45:37Z","upvoteCount":1,"author":{"@type":"Person","name":"giorgiosjames","url":"https://github.com/giorgiosjames"},"url":"https://github.com/GrapesJS/grapesjs/issues/2349#issuecomment-546177521"},"suggestedAnswer":[]}}
Issue #2349💬 AnsweredOpened October 23, 2019by HarryChristianR1 reactions

How can I export including code inside <script></script?>

快速解答by giorgiosjames1

Do you have allowScripts enabled for your editor? const editor = grapesjs.init({ ... allowScripts: 1, });

Read full answer below ↓

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)

giorgiosjamesOctober 25, 2019

Do you have allowScripts enabled for your editor? const editor = grapesjs.init({ ... allowScripts: 1, });

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.