mihail-himinec/tallstack-editorjs

EditorJS for Filament admin panel.

v2.0.1 2024-03-14 04:31 UTC

This package is auto-updated.

Last update: 2024-04-14 04:54:40 UTC


README

Latest Version on Packagist Total Downloads

Предустановки

Text and typography

Lists

Media & Embed

Table

Code

Помощь

Установка

Установить пакет:

composer require mihail-himinec/tallstack-editorjs

Опубликовать конфигурационный файл:

php artisan vendor:publish --tag="tallstack-editorjs-config"

Это содержимое опубликованного конфигурационного файла:

return [
];

При желании вы можете опубликовать представления с помощью:

php artisan vendor:publish --tag="tallstack-editorjs-views"

Использование

По умолчанию включены все инструменты

[
        'header',
        'image',
        'delimiter',
        'list',
        'underline',
        'quote',
        'table',
        'raw',
        'code',
        'inline-code',
        'style',
        'alert',
        'warning',
        'embed',
        'color',
        'marker',
        'tooltip',
        'checklist',
        'attaches',
        'alignmenttune',
        'paragraph',
        'strikethrough',
        'lists',
        'mermaid',
]

Вы можете отключить любой из них, передав массив инструментов:

EditorJs::make('content')->disableTools(['delimiter', 'quote']);

Вы можете отключить любой из них, передав массив инструментов:

EditorJs::make('content')->tools(['header', 'image', 'list']);

License

The MIT License (MIT). Please see License File for more information.