Monaco is a powerful code editor created by Microsoft. It provides code highlighting, auto completion and much more.
Configuration via the UI
When you've installed Mailcoach as a standalone app, you can choose this editor via the UI.
On the editor configuration you can customize the looks of the Monaco editor.
Configuring Mailcoach
Set the mailcoach.editor
config value to \Spatie\MailcoachMonaco\MonacoEditor::class
Configuring the looks
You can change some Monaco editor options by adding a monaco
configuration key to your mailcoach.php
config file.
'monaco' => [
'theme' => 'vs-light', // vs-light or vs-dark
'fontFamily' => 'Jetbrains Mono',
'fontLigatures' => true,
'fontWeight' => 400,
'fontSize' => '16', // No units
'lineHeight' => '24' // No units
],