BUG: Content loading issues from remote database
Question
Hi, I created Grapejs Pagebuilder. I have two links one for pagebuilder1 and another for PAgeBuilder2. Both are redirected to grpaejs editor and loading content from database based on id.
When I clicking by PageBuilder1 goes to index.html?id=1 (load saved content from database)
When I clicking by PageBuilder2 goes to index.html?id=2 (load saved content from database)
My issues is same content loading all pagebuilder.
My code:
grapesjs.init({ showOffsets: 1, noticeOnUnload: 0, container: '#gjs', height: '100%', fromElement: true, storageManager: { autoload: true, autosave: false, },
autoBeautify: true,
// clearOnRender: true,
allowScripts: 1,
styleManager: {
sectors: [{}]
});
Here Loading content from database,
success: function (data) {
if (data.length > 0) {
$.each(data, function (key, data) {
var html = data.content;
$('#gjs').append(html);
SiteBuilderThis.InitPageBuilder();
});
}
When I loading first content, all grapejs editors, showed here,Answers (1)
Follow this guide https://grapesjs.com/docs/modules/Storage.html#setup-remote-storage
Related Questions and Answers
Continue research with similar issue discussions.
Issue #833
[Bug]: on click of links with events Editor loading inside another editor
I am trying to load an existing Ad content into GrapesJS editor. On dragging new custom components into editor with some script, editor is...
Issue #597
storageManager: Loading from remote storage
Hi, I'm trying to read the HTML and CSS from my database. When I try to load it into the editor, nothing displays. I can store the data jus...
Issue #1429
Empty content when load from remote storage if components array is not empty
I have problem loading stored remote content into the editor when the JSON contains non empty gjs-components My JSON data looks like this w...
Issue #449
Can i load editor content dynamically?
I have a API rest that receives and supplies the contents of the editor items. The entire store created by the editor is saved: assets, com...
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.