Looking to hire Laravel developers? Try LaraJobs

laravel-editorjs-html maintained by saperx

Description
Convert object editorjs to html view
Last update
2022/01/24 14:54 (dev-main)
License
Links
Downloads
294

Comments
comments powered by Disqus

Editorjs-html you can convert the output object of EditorJs to HTML using editor-js/editorjs-php validation
Note: The components work with Tailwind classes

Support Blocks

  • Header
  • Paragraph
  • Table
  • List
  • Delimiter
  • Code
  • Quote
  • Embed
  • Image
  • Checklist
  • Link
  • Raw

Installation

composer require saperx/laravel-editorjs-html
php artisan vendor:publish --provider="SaperX\LaravelEditorjsHtml\EditorJSHtmlProvider"

Usage

use SaperX\LaravelEditorjsHtml\EditorJSHtml;

//[...]

$convertToHtml = new EditorJSHtml($request->input('editorjs_data'));
$convertToHtml->render(); //return html view