PHPackages                             arm092/laravel-rich-text-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arm092/laravel-rich-text-editor

ActiveLibrary

arm092/laravel-rich-text-editor
===============================

A modern, secure rich text editor for Laravel, Alpine.js, Tailwind CSS, and Livewire.

v0.1.0(today)00MITTypeScriptPHP ^8.1CI passing

Since Aug 9Pushed todayCompare

[ Source](https://github.com/arm092/laravel-rich-text-editor)[ Packagist](https://packagist.org/packages/arm092/laravel-rich-text-editor)[ Docs](https://github.com/arm092/laravel-rich-text-editor)[ RSS](/packages/arm092-laravel-rich-text-editor/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Laravel Rich Text Editor
========================

[](#laravel-rich-text-editor)

A modern, secure rich text editor for Laravel forms, Alpine.js, Tailwind CSS, and Livewire. It stores semantic HTML, ships with its browser assets, and provides both a lightweight code view and an enhanced Monokai code editor.

[![Visual editor and enhanced HTML code view](docs/images/editor-preview.png)](docs/images/editor-preview.png)

> This README is the express guide. See the [full documentation](docs/README.md) for every option, integration, and security detail.

Requirements
------------

[](#requirements)

- PHP 8.1 or newer
- Laravel 10, 11, 12, or 13
- Livewire 3 or 4 when Livewire binding is needed
- A modern evergreen browser

Install
-------

[](#install)

```
composer require arm092/laravel-rich-text-editor
php artisan rich-text-editor:publish
```

The publish command copies the configuration and prebuilt assets. Use `--force` after upgrades when you intentionally want to refresh published files.

Blade in one minute
-------------------

[](#blade-in-one-minute)

```

```

The submitted `content` value is HTML. For safe persistence, add the package cast:

```
use Arm092\RichTextEditor\Casts\RichTextCast;

protected function casts(): array
{
    return [
        'content' => RichTextCast::class . ':standard',
    ];
}
```

Laravel 10 applications should place the same entry in the model's protected `$casts` property.

Render saved content through the defensive renderer:

```

```

Livewire
--------

[](#livewire)

```

```

The component synchronizes through a native textarea and isolates the editor-managed DOM with `wire:ignore`. Default, `.live`, `.blur`, and `.change` model modifiers pass through unchanged.

Standalone JavaScript
---------------------

[](#standalone-javascript)

Basic code view:

```

```

Enhanced code view:

```

    document.addEventListener('DOMContentLoaded', () => {
        window.editor = RichTextEditor.create('#editor')
    })

```

Both files expose the same API: `create`, `scan`, `destroy`, `getHTML`, `setHTML`, `focus`, `setReadOnly`, and instance `destroy`.

Common configuration
--------------------

[](#common-configuration)

OptionDefaultPurpose`default_profile``standard`Selects the formatting and sanitizer profile.`code_view.enabled``true`Shows the HTML code-view command.`code_view.enhanced``true`Loads the enhanced or basic browser bundle.`assets.auto``true`Lets the Blade component include published assets once.`profiles.*.headings``[2, 3, 4]`Restricts heading levels.`profiles.*.font_sizes``[]`Enables only named, allowlisted text sizes.Roadmap
-------

[](#roadmap)

- Visual-editor dark theme with `light`, `dark`, and `auto` modes
- Responsive image drag-resize
- Tables
- Additional interface translations
- npm publishing with ESM modules
- A documented extension registry

See the [full roadmap](docs/roadmap.md) for scope notes and exclusions.

Documentation
-------------

[](#documentation)

- [Installation and updates](docs/installation.md)
- [Blade and Livewire](docs/blade.md)
- [Standalone JavaScript](docs/standalone.md)
- [Configuration and profiles](docs/configuration.md)
- [Code view](docs/code-view.md)
- [Security, casting, and rendering](docs/security.md)
- [JavaScript API and events](docs/javascript-api.md)
- [Troubleshooting](docs/troubleshooting.md)

License
-------

[](#license)

Laravel Rich Text Editor is open-source software released under the [MIT License](LICENSE.md).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26311312?v=4)[Arman](/maintainers/arm092)[@arm092](https://github.com/arm092)

---

Top Contributors

[![arm092](https://avatars.githubusercontent.com/u/26311312?v=4)](https://github.com/arm092 "arm092 (11 commits)")

---

Tags

laravellivewireeditorwysiwygtailwindcssalpinejsrich text

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arm092-laravel-rich-text-editor/health.svg)

```
[![Health](https://phpackages.com/badges/arm092-laravel-rich-text-editor/health.svg)](https://phpackages.com/packages/arm092-laravel-rich-text-editor)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k31.8M156](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M142](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k268.2k87](/packages/moonshine-moonshine)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M286](/packages/laravel-ai)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
