Issue #3244πŸ’¬ AnsweredOpened Jan 21, 2021by nithinpillalamarri1230 reactions

Grapes js version v0.16.34 giving unexpected script code after loading saved html

Quick answerby nithinpillalamarri123

kindly any one help me to get out of this issue editor.setComponents(html text ); not working the script as expected after loading from saved template html while drag and drop its working after saving and again loading that html with editor.setComponents(html text ); then the existing script replacing the symbols like...

Read full answer below ↓

Question

attaching code: while saving the html: <div class="gjs-row"> <div class="gjs-cell"> <div class="gjs-row"> <div class="gjs-cell"> <div id="i6x6"> <div id="bsrne9exd5" style="height:300px" tg="DataGrid" tagName="DataGrid" class="ag-theme-alpine"> </div> </div> </div> <div class="gjs-cell"> <div id="ibc4"> <div id="3drqn6v2q5" style="height:300px" tg="DataGrid" tagName="DataGrid" class="ag-theme-alpine"> </div> </div> </div> </div> </div> </div> <script>var items = document.querySelectorAll('#i6x6'); for (var i = 0, len = items.length; i < len; i++) { (function(){ var columnDefs = [{ headerName:...

Answers (3)

nithinpillalamarri123β€’ Jan 21, 2021

kindly any one help me to get out of this issue editor.setComponents(html text ); not working the script as expected after loading from saved template html while drag and drop its working after saving and again loading that html with editor.setComponents(html text ); then the existing script replac...

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @nithinpillalamarri123. Thanks for sharing your report about grapes js version v0.16.34 giving unexpected script code after loading saved html. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddle) Your Gra...

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.