Skip to content

dev-saperx/laravel-editorjs-html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert object editorjs to html view

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Blade 76.1%
  • PHP 23.9%