laravel-editor-js-html maintained by fxcjahid
Description
Package converts editorjs blocks into html.
Author
Last update
2023/10/09 18:26
(dev-main)
License
Downloads
40
Laravel Editor JS Html
This package conver EditorJs to pure Html
Install
- 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.
Suggest
Usage
Convert blocks into HTML
use Fxcjahid\LaravelEditorJsHtml\BlocksManager;
$blocksManager = new BlocksManager($data);
$html = $blocksManager->renderHtml();
echo $html