newindforks / orchid-editorjs
A orchid editorjs field
dev-master
2023-10-30 11:34 UTC
Requires
- orchid/platform: ^14.0
Requires (Dev)
- orchestra/testbench: ^14.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-03-01 00:44:25 UTC
README
Package description: Work in process
Installation
Install via composer
composer require newindforks/orchid-editorjs
Usage
/** * Views. * * @return Layout[] */ public function layout(): array { return [ Layout::rows([ EditorJS::make('mydata')->tools([ MarkerTool::make('marker'), ImageTool::make('picture') HeaderTool::make('header') ]) ]), ]; }
Register new tool
php artisan orchid:editorjs:tool MySuperTool
And in js
class MySuperTool { //code } window.editorJSTools = window.editorJSTools || []; window.editorJSTools['MySuperTool'] = MySuperTool;
This package is bootstrapped with the help of melihovv/laravel-package-generator.