mirror of https://github.com/artf/grapesjs.git
6 changed files with 69 additions and 115 deletions
@ -1,56 +1,17 @@ |
|||||
define(function () { |
define(function () { |
||||
return { |
return { |
||||
stylePrefix: 'am-', |
|
||||
/* |
|
||||
// Indicates if try to load data from the selected storage
|
|
||||
autoload: 1, |
|
||||
|
|
||||
// Indicates which storage to use. Available: local | remote
|
// Default assets
|
||||
storageType: 'local', |
assets: [], |
||||
|
|
||||
// Style prefix
|
// Style prefix
|
||||
stylePrefix: 'am-', |
stylePrefix: 'am-', |
||||
|
|
||||
// Where store remote assets
|
|
||||
urlStore : 'http://localhost/assets/store', |
|
||||
|
|
||||
// Where fetch remote assets
|
|
||||
urlLoad : 'http://localhost/assets/load', |
|
||||
|
|
||||
// The name that will be used to identify assets inside storage.
|
|
||||
// If empty will be used: prefix + 'assets'
|
|
||||
storageName: 'assets', |
|
||||
|
|
||||
// Custom parameters to pass with set request
|
|
||||
paramsStore : {}, |
|
||||
|
|
||||
// Custom parameters to pass with get request
|
|
||||
paramsLoad : {}, |
|
||||
|
|
||||
// Callback before request
|
|
||||
beforeSend : function(jqXHR,settings){}, |
|
||||
|
|
||||
// Callback after request
|
|
||||
onComplete : function(jqXHR,status){}, |
|
||||
*/ |
|
||||
// Default assets
|
|
||||
assets: [], |
|
||||
|
|
||||
// Url where uploads will be send
|
// Url where uploads will be send
|
||||
urlUpload: 'http://localhost/assets/upload', |
upload: 'http://localhost/assets/upload', |
||||
|
|
||||
// Text on upload input
|
// Text on upload input
|
||||
uploadText: 'Drop files here or click to upload', |
uploadText: 'Drop files here or click to upload', |
||||
|
|
||||
// Disable upload input
|
|
||||
disableUpload: false, |
|
||||
|
|
||||
// Store assets data where the new one is added or deleted
|
|
||||
storeOnChange: true, |
|
||||
|
|
||||
// It could be useful to avoid send other requests for saving assets,
|
|
||||
// as after upload the script may have already done it
|
|
||||
storeAfterUpload: false, |
|
||||
|
|
||||
}; |
}; |
||||
}); |
}); |
||||
Loading…
Reference in new issue