Create your own blocks and make them editable with Livewire components. DropBlockEditor is made for Laravel and with Livewire, Alpine.JS and Tailwind CSS.
class Article extends Block
{
public $title = 'Article';
public $data = [
'content' => 'This is just an example block.'
];
public $blockEditComponent = 'article';
public function render()
{
return <<<'blade'
<div>{{ $content }}</div>
blade;
}
}
[
{
"data": {
"title": "Hi!",
"content": "This is just a very basic example of an article block. Imagine you have all the freedom that Livewire gives you. Now start making your own blocks!"
},
"class": "App\\DropBlockEditor\\Blocks\\Article"
}
]
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-image width="100px" src="/assets/img/logo-small.png"></mj-image>
<mj-divider border-color="#F45E43"></mj-divider>
<mj-text font-size="20px" color="#F45E43" font-family="helvetica">Hello World</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
Hi there, DropBlockEditor is still in pre-release. If you want to keep up-to-date on development and be notified when it's production ready, follow me on X or sign up for my newsletter.