$AEE.baseDir(value)
Use this function to get/set the relative path of the editor.
Parameters:
value : The path represented by a string.
If invoked without parameter, the function returns the current value of baseDir.
|
//Setter
$AEE.baseDir('../emaileditor'); //returns $AEE
//Getter
$AEE.baseDir(); //returns '../emaileditor'
|
$AEE.baseUrl(value)
Use this function to set/get the full path of the editor.
Parameters:
value : The path represented by a string.
If invoked without parameter, the function returns the current value of baseUrl.
|
//Setter
$AEE.baseDir('http://automizy.com/automizyemaileditor'); //returns $AEE
//Getter
$AEE.baseDir(); //returns 'http://automizy.com/automizyemaileditor'
|
$AEE.clickToBack(func)
Use this function to set the callback function which will be called when clicking on the Back button.
If invoked without parameter, the set function will be called.
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.clickToBack(function(){
if($AEE.saved){
$AEE.close();
}else if(confirm('You have unsaved edits in the campaign. Are you sure you want to exit?')){
$AEE.close();
}
});
//Trigger
$AEE.clickToBack();
|
$AEE.clickToPreview(func)
Use this function to set the callback function which will be called when clicking on the Preview button.
If invoked without parameter, the set function will be called.
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.clickToPreview(function(){
alert('Preview not available.');
});
//Trigger
$AEE.clickToPreview();
|
$AEE.clickToSave(func)
Use this function to set the callback function which will be called when clicking on the Save button.
If invoked without parameter, the set function will be called.
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.clickToSave(function(){
alert('Saved!');
});
//Trigger
$AEE.clickToSave();
|
$AEE.clickToSaveAndExit(func)
Use this function to set the callback function which will be called when clicking on the Save and next button.
If invoked without parameter, the set function will be called.
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.clickToSaveAndExit(function(){
alert('Saved!');
$AEE.close();
});
//Trigger
$AEE.clickToSaveAndExit();
|
$AEE.clickToSendTest(func)
Use this function to set the callback function which will be called when clicking on the Send test button.
If invoked without parameter, the set function will be called.
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.clickToSendTest(function(){
alert('Send test!');
});
//Trigger
$AEE.clickToSendTest();
|
$AEE.customFields(obj)
Use this function to set/get the options of the custom fields tab.
Parameters:
obj : The custom fields with their names.
|
//Setter
$AEE.customFields({
name: "Name",
age: "Age"
}); //returns $AEE
//Getter
$AEE.customFields(); //returns {name: "Name", age: "Age"}
|
$AEE.dynamicBlocks(bool)
Use this function to activate dynamic editor blocks.
Parameters:
bool : Boolean. Set is true to activate, or false to deactivate dynamic blocks.
|
//Setter
$AEE.dynamicBlocks(true); //returns $AEE
//Getter
$AEE.dynamicBlocks(); //returns true
|
$AEE.getDescription()
Use this function to get the description (The first 255 characters of the text, without breaking).
This description is used when you want to share it on Facebook, for example.
|
$AEE.getDescription()
|
$AEE.logoLink(url)
Use this function to set/get the link of the Automizy logo on the top left corner.
Parameters:
url : The url you want to open when clicking on the logo.
|
//Setter
$AEE.logoLink("https://automizy.com"); //returns $AEE
//Getter
$AEE.logoLink(); //returns "https://automizy.com"
|
$AEE.logoSrc(url)
Use this function to set the logo in the top left corner.
Parameters:
url : The path of the image you want to use.
|
//Setter
$AEE.logoSrc('vendor/automizy-email-editor/images/logo-automizy.png'); //returns $AEE
//Getter
$AEE.logoSrc(); //returns 'vendor/automizy-email-editor/images/logo-automizy.png'
|
$AEE.maxWidth(val)
Use this function to get/set the maximal width of the email.
Parameters:
val : The width in pixels you want to set.
|
//Setter
$AEE.maxWidth(600); //returns $AEE
//Getter
$AEE.maxWidth(); //returns 600
|
$AEE.minWidth(val)
Use this function to get/set the minimal width of the email.
Parameters:
val : The width in pixels you want to set.
|
//Setter
$AEE.minWidth(300);
//Getter
$AEE.minWidth(); //returns 300
|
$AEE.recipient(email)
You can set/get the recipient of the test email using this function.
Parameters:
email : The email address you want to set.
|
//Setter
$AEE.recipient('myaddress@mymail.com'); //returns $AEE
//Getter
$AEE.recipient(); //returns 'myaddress@mymail.com'
|
$AEE.save(func)
Use this function to save the email / set the callback function you want to trigger on saving.
If invoked without parameter, the set function will be called.
This function also has a special feature: if you invoke it using function(data){} parameter, you get the email object as data .
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.save(function(){
console.log('SAVING!');
});
//Setter
$AEE.save(function(data){
console.log(data);
});
//Trigger
$AEE.save();
|
$AEE.saveAndExit(func)
Use this function to save the email and exit / set the callback function you want to trigger on save and exit.
If invoked without parameter, the set function will be called.
This function also has a special feature: if you invoke it using function(data){} parameter, you get the email object as data .
Parameters:
func : The function you want to invoke.
|
//Setter
$AEE.saveAndExit(function(){
console.log('SAVE & EXIT!');
});
//Setter
$AEE.saveAndExit(function(data){
console.log(data);
});
//Trigger
$AEE.saveAndExit();
|
$AEE.segments(obj)
Use this fnction to set/get the segments.
Parameters:
obj : The segments with their id and names.
|
//Setter
$AEE.segments({
1: "Segment1",
2: "Segment2"
}); //returns $AEE
//Getter
$AEE.segments(); //returns {1: "Segment1", 2: "Segment2",}
|
$AEE.showSaveMessage()
Use this function to show the 'Last saved' message with the current time.
|
$AEE.showSaveMessage();
|
$AEE.systemFields(obj)
Use this function to set/get the options of the built-in custom fields tab.
Parameters:
obj : The custom fields with their names.
|
//Setter
$AEE.systemFields({
unsubscribe: "Unsubscribe link",
facebookShare: "Share on Facebook link"
}); //returns $AEE
//Getter
$AEE.systemFields(); //returns {unsubscribe: "Unsubscribe link", facebookShare: "Share on Facebook link"}
|
$AEE.title(str)
Use this function to set/get the title of the email.
Parameters:
str : The title you want to set.
|
//Setter
$AEE.title('My email'); //returns $AEE
//Getter
$AEE.title(); //returns 'My email'
|
$AEE.widget()
Use this function to get the DOM element of the editor.
|
$AEE.widget();
|