PHPackages                             marshmallow/nova-tinymce - 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. [Templating &amp; Views](/categories/templating)
4. /
5. marshmallow/nova-tinymce

ActiveLibrary[Templating &amp; Views](/categories/templating)

marshmallow/nova-tinymce
========================

This Nova package allow you to use TinyMCE editor for text areas.You can customize the editor options and... you can upload images to your server and put them rigth there on the text without leaving the text editor!

v2.3.1(3mo ago)419.7k↓25%1[2 PRs](https://github.com/marshmallow-packages/nova-tinymce/pulls)2MITCSSPHP ^8.0CI passing

Since May 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/nova-tinymce)[ Packagist](https://packagist.org/packages/marshmallow/nova-tinymce)[ RSS](/packages/marshmallow-nova-tinymce/feed)WikiDiscussions master Synced 1mo ago

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

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Laravel Nova TinyMCE editor
===========================

[](#laravel-nova-tinymce-editor)

This Nova package allows you to use [TinyMCE editor](https://tiny.cloud) for text areas. You can customize the editor options.

Composer
--------

[](#composer)

You can install the package via composer:

```
composer require marshmallow/nova-tinymce
```

Installation
------------

[](#installation)

Run the command bellow, to publish TinyMCE JavaScript and CSS assets.

```
php artisan vendor:publish --provider="Marshmallow\Nova\TinyMCE\FieldServiceProvider" --tag="resources"
```

Usage
-----

[](#usage)

Include `TinyMCE` in your fields array on the Nova Resource.

```
use Marshmallow\Nova\Tinymce\TinyMCE;

public function fields(Request $request)
{
    return [
        ID::make()->sortable(),
        TinyMCE::make(__('Content'), 'content'),
    ];
}
```

### Add custom HTML (buttons)

[](#add-custom-html-buttons)

To add buttons or custom html with the click of a button, you can call the `buttons()` method when you're making the field.

```
TinyMCE::make('body')->buttons([
    'Name button' =>  'value of HTML',
    'Name button2' =>  'More HTML'
]),
```

### Add variables

[](#add-variables)

To add variables with the click of a button, you can call the `variables()` method when you're making the field. More docs see:

```
TinyMCE::make('body')->variables([
    'name_var' =>  'value_var',
]),
```

### Set the height

[](#set-the-height)

The default height of the TinyMCE editor is handled by the `nova-tinymce.php` config file. If there is a need to change the height on some TinyMCE fields, you can do this by calling the `height()` method when you're making the field.

```
TinyMCE::make('body')->height(300),
```

### Override config file

[](#override-config-file)

You can publish the config and override all `TinyMCE` settings.

```
php artisan vendor:publish --provider="Marshmallow\Nova\TinyMCE\FieldServiceProvider" --tag="config"
```

### Adding custom styling

[](#adding-custom-styling)

If you want to add an extra styling that can be used on all TinyMCE fields, you need to publish the config file. In can add your custom styling options to the `custom_items` array in the config file. These custom styling options should look like the example below.

```
'custom_items' => [
    // This will add a .lead class on the paragraph tag.
    [
        'title' => 'Lead Paragraph',
        'block' => 'p',
        'classes' => 'lead',
    ],
],
```

### Plugin customization

[](#plugin-customization)

You can pass any configuration option for the javascript SDK to the array in the `options()` method. For example, you like to have increased the height of the text area:

```
TinyMCE::make('body')->options([
    'height' => '980'
]),
```

You can see the full list of parameters in the docs:

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance82

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~99 days

Recently: every ~204 days

Total

22

Last Release

99d ago

Major Versions

v1.2.2 → v2.0.02022-05-06

PHP version history (3 changes)v1.0.1PHP &gt;=7.1.0

v1.2.0PHP ^7.1|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (84 commits)")[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (79 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (21 commits)")

---

Tags

laraveleditornovatiny

### Embed Badge

![Health badge](/badges/marshmallow-nova-tinymce/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-nova-tinymce/health.svg)](https://phpackages.com/packages/marshmallow-nova-tinymce)
```

###  Alternatives

[emilianotisato/nova-tinymce

This Nova package allow you to use TinyMCE editor for text areas.You can customize the editor options and... you can upload images to your server and put them rigth there on the text without leaving the text editor!

116884.3k4](/packages/emilianotisato-nova-tinymce)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[outl1ne/nova-multiselect-field

A multiple select field for Laravel Nova.

3402.9M2](/packages/outl1ne-nova-multiselect-field)[waynestate/nova-ckeditor4-field

This nova package allows you to use CKEditor 4 for text areas.

62739.1k8](/packages/waynestate-nova-ckeditor4-field)[interaction-design-foundation/nova-unlayer-field

A Laravel Nova field for Unlayer to compose emails and landing pages.

35256.8k](/packages/interaction-design-foundation-nova-unlayer-field)[interaction-design-foundation/nova-html-code-field

A Laravel Nova field to write raw HTML and preview.

11157.5k](/packages/interaction-design-foundation-nova-html-code-field)

PHPackages © 2026

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