PHPackages                             sashsvamir/laravel-codemirror - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sashsvamir/laravel-codemirror

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sashsvamir/laravel-codemirror
=============================

Turn your blade textarea component to Codemirror code editor in Laravel

2251↓25%Blade

Since Aug 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sashsvamir/laravel-codemirror)[ Packagist](https://packagist.org/packages/sashsvamir/laravel-codemirror)[ RSS](/packages/sashsvamir-laravel-codemirror/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Codemirror
==========

[](#codemirror)

This is component replace your textarea element to codemirror editor.

Installation:
-------------

[](#installation)

```
composer require sashsvamir/laravel-codemirror
```

### Setup

[](#setup)

To replace textarea by codemirror components, you should wrap textarea element by codemirror component ``:

```

    Your text here

```

You can pass codemirror mode (see: [https://codemirror.net/doc/manual.html#option\_mode](https://codemirror.net/doc/manual.html#option_mode)) with `mode` attribute:

```

    const foo = 'bar';

```

Note
----

[](#note)

If you want to save form data with ajax request, you must update hidden source textarea by running method `querySelectorAll()` on textarea element:

```
form.querySelectorAll('textarea').forEach(textarea => {
    if (textarea.updateFromWysiwyg) {
        textarea.updateFromWysiwyg()
    }
})
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6536c9f8af43a09edd5f23d3bd78a170cc0441319ebcd42528588dd0285d959?d=identicon)[sashsvamir](/maintainers/sashsvamir)

---

Top Contributors

[![sashsvamir](https://avatars.githubusercontent.com/u/1404421?v=4)](https://github.com/sashsvamir "sashsvamir (12 commits)")

### Embed Badge

![Health badge](/badges/sashsvamir-laravel-codemirror/health.svg)

```
[![Health](https://phpackages.com/badges/sashsvamir-laravel-codemirror/health.svg)](https://phpackages.com/packages/sashsvamir-laravel-codemirror)
```

PHPackages © 2026

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