Issue #3215Opened January 4, 2021by san-1230 reactions

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, },

Code SnippetTEXT
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)

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.