alexsabur / orchid-editorjs-field
Orchid editorjs 字段
3.0.0
2022-06-19 17:51 UTC
Requires
- orchid/platform: ^12.0
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-08-27 15:23:25 UTC
README
包描述:工作中
安装
通过 composer 安装
composer require alexsabur/orchid-editorjs-field
使用
/** * Views. * * @return Layout[] */ public function layout(): array { return [ Layout::rows([ EditorJS::make('mydata')->tools([ MarkerTool::make('marker'), ImageTool::make('picture') HeaderTool::make('header') ]) ]), ]; }
注册新工具
php artisan orchid:editorjs:tool MySuperTool
并在 js 中
class MySuperTool { //code } window.editorJSTools = window.editorJSTools || []; window.editorJSTools['MySuperTool'] = MySuperTool;
安全性
如果您发现任何与安全相关的问题,请发送电子邮件至 alexsabur@live.ru 而不是使用问题跟踪器。
致谢
此包借助 melihovv/laravel-package-generator 开发。