mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
define(function () {
|
|
|
|
return {
|
|
// 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: false,
|
|
|
|
//Enable/Disable styles model (JSON format)
|
|
storeStyles: false,
|
|
|
|
//Enable/Disable saving HTML template
|
|
storeHtml: true,
|
|
|
|
//Enable/Disable saving HTML template
|
|
storeCss: true,
|
|
|
|
// ONLY FOR LOCAL STORAGE
|
|
// If enabled, checks if browser supports Local Storage
|
|
checkLocal: true,
|
|
|
|
// ONLY FOR REMOTE STORAGE
|
|
// Custom params that should be passed with each store/load request
|
|
params: {},
|
|
|
|
// Endpoint where to save all stuff
|
|
urlStore: '',
|
|
|
|
// Endpoint where to fetch data
|
|
urlLoad: '',
|
|
|
|
//Callback before request
|
|
beforeSend: function(jqXHR, settings){},
|
|
|
|
//Callback after request
|
|
onComplete: function(jqXHR, status){},
|
|
|
|
// set contentType paramater of $.ajax
|
|
// true: application/json; charset=utf-8'
|
|
// false: 'x-www-form-urlencoded'
|
|
contentTypeJson: false
|
|
|
|
};
|
|
});
|