Skip to content

AlexSabur/orchid-editorjs-field

Repository files navigation

Orchid Editorjs Field

GitHub Workflow Status styleci

Packagist Packagist Packagist

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 [email protected] instead of using the issue tracker.

Credits

This package is bootstrapped with the help of melihovv/laravel-package-generator.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published