newindforks / orchid-editorjs
A orchid editorjs field
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 6
pkg:composer/newindforks/orchid-editorjs
Requires
- orchid/platform: ^14.0
Requires (Dev)
- orchestra/testbench: ^14.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-09-29 03:07: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.