Unlayer is a beautiful wysiwyg editor, that requires no knowledge of HTML. It also offers image uploads.
Configuration via the UI
When you've installed Mailcoach as a standalone app, you can choose this editor via the UI on the settings screen.
mailcoach.editor config value to
Configuring image uploads
The Mailcoach Unlayer editor supports image uploads.
To configure the
disk_name and maximum images size, add the following configuration to your
mailcoach.php config file.
'unlayer' => [ 'disk_name' => env('MAILCOACH_UPLOAD_DISK', 'public'), 'max_width' => 1500, 'max_height' => 1500, ],
The package does not automatically delete uploads. If you upload files and replace them, the original files will still be stored on disk.
To remove unwanted upload, delete the relevant
Spatie\MediaLibrary\MediaCollections\Models\Media models via code.
This way the files will also be deleted from the filesytem.
Our package installs the free version of Unlayer. Should you want to customize the looks or need extra behaviour, take a look at the pricing plans of Unlayer.
Switching to and from Unlayer
Unlayer editor stores content in a structured way. When switching from or to Unlayer, content in existing templates and draft campaigns will get lost.