GrapesJS / mjml

Newsletter Builder with MJML components in GrapesJS
http://grapesjs.com/demo-mjml.html
BSD 3-Clause "New" or "Revised" License
636 stars 226 forks source link

Trouble loading remote url data #67

Closed FrenchXavi closed 4 years ago

FrenchXavi commented 6 years ago

Hello,

I'm trying to load remote data, according to the log, the data is loaded but nothing is displayed. I got a blank page.

My config is

var editor = grapesjs.init({
      fromElement: 1,
      autorender: false,
      container : '#gjs',      
      storageManager: {
        type: 'remote',
        params: {},   // For custom values on requests
        // your SERVER endpoints
        urlStore: 'https://grapesjsStore.php',
        urlLoad: 'https://grapesjsLoad.php',
        contentTypeJson: true
      }...
}

  // Store and load events
  editor.on('storage:load', function(e) { console.log('Loaded ', e) });
  editor.on('storage:store', function(e) { console.log('Stored ', e) });

grapesjs screen 1

Is anyone having a solution?

Anuj-kumar-yadav commented 5 years ago

Please change database columns with gjs prefix like : gjs-html instead of html, gjs-css instead of css like this, its works :)

DRoet commented 4 years ago

sounds like its already possible to fix this, closing due to inactivity