saperx/laravel-editorjs-html

Convert object editorjs to html view

1.2 2022-01-24 13:54 UTC

This package is auto-updated.

Last update: 2024-04-24 19:05:57 UTC


README

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