This package conver EditorJs to pure Html
- Install package
composer require fxcjahid/Laravel-editor-js-html
- Add provider in
config/app.php
fxcjahid\LaravelEditorJsHtml\LaravelEditorJsHtmlProvider::class,
Supported Blocks and tools:
- Heading
- Quote
- Image
- Simple Image (without backend requirement)
- Nested List
- Checklist
- Link embed
- Embeds ( YouTube, Twitch, Vimeo, Gfycat, Instagram, Twitter, etc )
- Table
- Delimiter
- Warning
- Code
- Raw HTML
- Attaches
- Marker
- Inline Code
See the 😎 Awesome Editor.js list for more tools.
Convert blocks into HTML
use Fxcjahid\LaravelEditorJsHtml\BlocksManager;
$blocksManager = new BlocksManager($data);
$html = $blocksManager->renderHtml();
echo $html