Additional functions

Other functions, which are independent of Automizy Email Editor, but you might have a good use of them.

$AEE.getExtension(fileName)

Use this function to get the extension of a given file.
Parameters:
fileName: The file you want to inspect.
$AEE.getExtension("dog.jpg") //return "jpg"
                

$AEE.isImageFile(fileName)

Returns true if the file given as parameter is an image file.
Parameters:
fileName: The file you want to inspect.
$AEE.isImageFile("dog.jpg") //return true
                

$AEE.rgbStyleToHex(rgbStyle)

Parameters:
rgbStyle: The rgb style you want to convert.
It has to follow this pattern: "rgb(x, y, z)"
$AEE.rgbStyleToHex("rgb(255, 255, 255)") //return "#ffffff"
                

$AEE.screenSize()

Returns the screen size of the window.
$AEE.screenSize() // return {x: 1400, y: 800}
                

$AEE.styleHtml(htmlCode)

Formats the given html code, using delimiters.
Parameters:
htmlCode: The html code you want to formats.
$AEE.styleHtml($AEE.getHtmlCode());
                

$AEE.touchable()

Inspects the device and returns true if it's touchable.
$AEE.touchable() // return false