mihail-himinec / tallstack-editorjs
EditorJS for Filament admin panel.
Installs: 84
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: ^8.1
- filament/forms: ^3.0
- illuminate/contracts: ^8.0|^9.0|^10.0.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-04-14 04:54:40 UTC
README
Предустановки
Text and typography
- @editorjs/paragraph — text block base tool
- @editorjs/header — header block
- @editorjs/quote — tool for quotes
- @editorjs/delimiter — delimiter tool
- @editorjs/warning — warning tool can be used as editorials notifications or appeals
- editorjs-alert - tool for adding colorful alert messages
Lists
- @editorjs/nested-list — Multi-leveled lists
- @editorjs/checklist — checklists for your texts
Media & Embed
- @editorjs/attaches — attach files to your article
- @editorjs/embed — pasted patterns handling and inserts iframe with embedded content
- @editorjs/link — link with preview
- naduma/editorjs-mermaid — Mermaid Block for Editor.js
Table
- @editorjs/table — table constructor tool
Code
- @editorjs/code — tools for code examples
- @editorjs/raw — include raw HTML code to your article
Помощь
Установка
Установить пакет:
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.