UNPKG

grapesjs_codeapps

Version:

Free and Open Source Web Builder Framework/SC Modification

58 lines (41 loc) 1.41 kB
module.exports = { // Prefix identifier that will be used inside storing and loading id: 'gjs-', // Enable/Disable autosaving autosave: 1, // Indicates if load data inside editor after init autoload: 1, // Indicates which storage to use. Available: local | remote type: 'local', // If autosave enabled, indicates how many steps (general changes to structure) // need to be done before save. Useful with remoteStorage to reduce remote calls stepsBeforeSave: 1, //Enable/Disable components model (JSON format) storeComponents: 1, //Enable/Disable styles model (JSON format) storeStyles: 1, //Enable/Disable saving HTML template storeHtml: 1, //Enable/Disable saving CSS template storeCss: 1, // ONLY FOR LOCAL STORAGE // If enabled, checks if browser supports Local Storage checkLocal: 1, // ONLY FOR REMOTE STORAGE // Custom parameters to pass with the remote storage request, eg. csrf token params: {}, // Custom headers for the remote storage request headers: {}, // Endpoint where to save all stuff urlStore: '', // Endpoint where to fetch data urlLoad: '', //Callback before request beforeSend(jqXHR, settings) {}, //Callback after request onComplete(jqXHR, status) {}, // set contentType paramater of $.ajax // true: application/json; charset=utf-8' // false: 'x-www-form-urlencoded' contentTypeJson: false };