Downloads
Stars
Version
Установить пакет:
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']);
The MIT License (MIT). Please see License File for more information.