Search by

javaabu / block-editor

dash8xjavaabun4ff4h

A block editor for Laravel powered by TipTap: blocks defined by PHP classes (attributes, validation, Blade and React rendering) and JS modules, multi-column layouts, Thaana typing, JSON storage with per-block validation and sanitizing, and Blade and Inertia React fields.

Package info

github.com/Javaabu/block-editor

Language:TypeScript

pkg:composer/javaabu/block-editor

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 2

dev-main / 1.x-dev 2026-11-10 09:59 UTC

This package is auto-updated.

Last update: 2026-11-15 10:54:03 UTC


README

Tests codecov Latest Version on Packagist License: MIT

A block editor for Laravel, built on TipTap. Blocks are PHP classes (attributes, validation, Blade rendering) with optional JS modules, and apps and packages register their own. Content is stored as JSON, validated and sanitized per block, and rendered with Blade or React. Multi-column layouts, phonetic Thaana typing and RTL-aware rendering are built in.

protected function casts(): array
{
    return ['body' => AsBlockDocument::class];
}

$request->validate(['body' => ['required', BlockContent::make()->required()]]);
<x-block-editor::editor name="body" :model="$post" />

<x-block-editor::content :content="$post->body" />
<BlockEditorField name="body" config={editor} />   // @javaabu/block-editor/react
<BlockContent content={post.body} />

Documentation

You'll find the documentation on https://docs.javaabu.com/block-editor, and in the docs folder.

AI coding assistants can start from llms.txt. The package ships a Laravel Boost skill and guideline, which Boost finds by itself. See AI assistants.

Testing

composer test
pnpm test
pnpm examples   # try the editor in a browser

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email info@javaabu.com instead of using the issue tracker.

Credits

License

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