alexsabur / orchid-editorjs-field
A orchid editorjs field
Installs: 27 419
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 6
Open Issues: 3
Requires
- orchid/platform: ^12.0
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-10-27 15:38:42 UTC
README
Package description: Work in process
Installation
Install via composer
composer require alexsabur/orchid-editorjs-field
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;
Security
If you discover any security related issues, please email alexsabur@live.ru instead of using the issue tracker.
Credits
This package is bootstrapped with the help of melihovv/laravel-package-generator.