EmailEditor by Persefone is a drag & drop email editor script in javascript Jquery and php built for developer. You can simply integrate this script in your web project and create custom email template with drag & drop.
Server requirements
It's necessary a web server that support php (for example Apache). It can be Windows or linux server. There aren't special libraries to load, just a server with php support.
Installation
Upload all files and folders with FTP software like filezilla in your website and set chmod 777 to "tmp" and "images" folder.
Configuration
Exist a config file called "config.php". let it point to the installation folder or leave it blank if it's installed in the root path
<?php
$path = "http://www.yourwebsite.com/editor/";
In "tmp" folder. The final template with complete css is saved in files called with "template_" prefix. The only body of email without css is saved in files called with "body_" prefix.
template_xxxx.html
contains all html template included css
body_xxxxx.html
contains all html template except css
It's possible. You can call index.php in this way
index.php?filename=1451200148.html
where 1451200148.html it's the file name of body contents saved
You can create a custom element of following type:
text |
title |
video |
social |
tools |
image / image+text |
in the "elements" folder there are 6 folders
in every folder there are one or more html files with the blocks to add at the editor.
if you want add a custom element, you must create a new html file with this structure:
Image preview
to set the preview image of element that appear when user click on sidebar menu, you must insert the path of images in preview class div
Html content
The content of block it's in view class div. Every element must stay inside a table. this table has how class "main".
Every element can be one or these type:
in this example i have used data-type="imgtxt"