PHPackages                             helios-ag/fm-tinymce-bundle - 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. helios-ag/fm-tinymce-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

helios-ag/fm-tinymce-bundle
===========================

TinyMCE bundle, adds TinyMCE editor to your Symfony project

2.0(2y ago)61.8k↓100%5[3 issues](https://github.com/helios-ag/FMTinyMCEBundle/issues)MITPHPPHP ^7.4 || ^8.0

Since Nov 7Pushed 1y ago2 watchersCompare

[ Source](https://github.com/helios-ag/FMTinyMCEBundle)[ Packagist](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)[ Docs](https://github.com/helios-ag/FMTinyMCEBundle)[ RSS](/packages/helios-ag-fm-tinymce-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (9)Versions (8)Used By (0)

FMTinyMCEBundle
===============

[](#fmtinymcebundle)

[TinyMCE](https://github.com/tinymce/tinymce) integration in Symfony

The purpose of bundle is to provide seamless integration between elFinder and TinyMCE editor.

### Code Quality Assurance

[](#code-quality-assurance)

CoverAllsLicenseStyleCIVersion Status[![Coverage Status](https://camo.githubusercontent.com/88f9ad467feb7a726eefb8a7e70ef2933c0c0917cac77ae28a2a69e46d630bbe/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f68656c696f732d61672f464d54696e794d434542756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/helios-ag/FMTinyMCEBundle?branch=master)[![License](https://camo.githubusercontent.com/f67435e841aff427e0513518f11a6a36b428a0217344e066ba3b5965cd0617c0/68747470733a2f2f706f7365722e707567782e6f72672f68656c696f732d61672f666d2d74696e796d63652d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)[![StyleCI](https://camo.githubusercontent.com/20ab041375af41ad09f9af6f2d406ff7fb5a89dfdc81b9bfc73e325bac599ecb/68747470733a2f2f7374796c6563692e696f2f7265706f732f34343638303938342f736869656c64)](https://styleci.io/repos/44680984)[![Latest Stable Version](https://camo.githubusercontent.com/d07e09398319ee51aa6b369891462a5135cef8a7785623c13dfe028285c2fb2e/68747470733a2f2f706f7365722e707567782e6f72672f68656c696f732d61672f666d2d74696e796d63652d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/461dad74abaf5b8f32eae2a1973a86ec1809b9fccc22cbf953842caabf4e07c8/68747470733a2f2f706f7365722e707567782e6f72672f68656c696f732d61672f666d2d74696e796d63652d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)Downloads[![Total Downloads](https://camo.githubusercontent.com/35d01edc15fb455796dd248b676d1cf8dd174ee1d55b9f771527f479b5b5cec5/68747470733a2f2f706f7365722e707567782e6f72672f68656c696f732d61672f666d2d74696e796d63652d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)**TinyMCE** is a platform independent web-based JavaScript WYSIWYG HTML editor control released as open source under LGPL.

TinyMCE enables you to convert HTML TEXTAREA fields or other HTML elements to editor instances.

**Table of contents**

- [Installation](#installation)
    - [Step 1: Installation](#step-1-installation)
    - [Step 2: Enable the bundle](#step-2-enable-the-bundle)
- [Basic configuration](#basic-configuration)
    - [Add configuration options to your config.yml](#add-configuration-options-to-your-configyml)

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

[](#installation)

### Step 1: Installation

[](#step-1-installation)

Add FMTinyMCEBundle to your composer.json:

```
{
    "require": {
        "helios-ag/fm-tinymce-bundle": "~1"
    }
}
```

If you want to override default assets directory of Richfilemanager, add next option. By default, assets copied to `web/assets/tinymce` or `public/assets/tinymce`depending on Symfony version

```
{
    "config": {
        "tinymce-dir": "web/assets/"
    }
}
```

Add composer script

`"FM\\TinyMCEBundle\\Composer\\TinyMCEScriptHandler::copy",`

to scripts section of composer.json

```
{
  "scripts": {
      "symfony-scripts": [
          "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
          "FM\\TinyMCEBundle\\Composer\\TinyMCEcriptHandler::copy",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
      ]
    }
}
```

Now tell the composer to download the bundle by running the command:

```
composer update helios-ag/fm-tinymce-bundle
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
