Issue #1733✓ SolvedOpened January 21, 2019by AkibDeraiya1232 reactions

How to remove script tag which is added by add block manager script

Quick answerby thinkanymore2

jsInHtml……false

Read full answer below ↓

Question

Hello @artf I want to export final/production based html content excluding the script(Only which is added by block manager). Suppose i am adding a new block using block-manager, like Now when i put this block into the editor then it will create a div tag into the document and also creates the script like, So, while i am trying to fetch whole page html code using editor.getHtml() i also get above mentioned script. Actually i don't want this generated script(generated by block-manger only script). Can we prevent this block-manager generated script while we fetched?

Answers (3)

👍 Most helpfulthinkanymoreJanuary 29, 2019

jsInHtml……false

thinkanymoreJanuary 21, 2019

editor.Canvas.getWrapperEl().innerHTML

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.