alaminfirdows / laravel-editorjs
A simple editor.js html parser for Laravel
v2.4.0
2026-03-24 15:50 UTC
Requires
- php: ^8.1|^8.2|^8.3|^8.4
- codex-team/editor.js: v2.0.7
- illuminate/support: ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^8.36
- phpunit/phpunit: ^10.5
- 3.x-dev
- 2.x-dev
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- 1.x-dev
- 1.2.x-dev
- v1.1.0
- v1.0.0
- dev-php-8.5
- dev-wip
- dev-feat/marker-tool
- dev-feat/inline-code
- dev-feat/warning-tool
- dev-ci/github-action
- dev-feat/larastan
- dev-feat/pint-integration
- dev-feat/bump-php8.1
- dev-feat/css-bem
- dev-test/add-missing-tests
- dev-feat/php-8.4
- dev-main
This package is auto-updated.
Last update: 2026-03-24 17:56:49 UTC
README
Laravel-Editor.js
A simple editor.js html parser for Laravel
Features
- Render Editor.js output
- Custom block rendering
Demo
You can can play with the demo here
Installation
You can install the package via composer:
composer require alaminfirdows/laravel-editorjs
You can publish the config file with:
php artisan vendor:publish --tag="laravel_editorjs-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel_editorjs-views"
Usage
Blade Directive
@editorJsRender($posts->body)
Facade
use App\Models\Post; $post = Post::find(1); echo LaravelEditorJs::render($post->body);
Defining An Accessor
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use AlAminFirdows\LaravelEditorJs\Facades\LaravelEditorJs; class Post extends Model { public function getBodyAttribute() { return LaravelEditorJs::render($this->attributes['body']); } } $post = Post::find(1); echo $post->body;
Versioning
| Laravel Version | Package Version |
|---|---|
| 10.x, 11.x, 12.x | ✅ 2.x |
| 9.x | ✅ 1.1 |
| 8.x | ✅ 1.0 |
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
