Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helios-ag/fmtinymcebundle

Easily add TinyMCE WYSIWYG Text Editor to your Symfony Project
https://github.com/helios-ag/fmtinymcebundle

elfinder symfony symfony-bundle tinymce tinymce-editor wysiwyg wysiwyg-editor

Last synced: 19 days ago
JSON representation

Easily add TinyMCE WYSIWYG Text Editor to your Symfony Project

Awesome Lists containing this project

README

        

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 ###

|CoverAlls| License | StyleCI | Version Status |
|-----------------|-----------------|-----------------|-----------------|
|[![Coverage Status](https://coveralls.io/repos/helios-ag/FMTinyMCEBundle/badge.svg?branch=master&service=github)](https://coveralls.io/github/helios-ag/FMTinyMCEBundle?branch=master)|[![License](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/license.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)|[![StyleCI](https://styleci.io/repos/44680984/shield)](https://styleci.io/repos/44680984)|[![Latest Stable Version](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/v/stable.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle) [![Latest Unstable Version](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/v/unstable.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)

| Downloads |
|-----------|
|[![Total Downloads](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/downloads.svg)](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

### Step 1: Installation

Add FMTinyMCEBundle to your composer.json:

```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

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

Add composer script

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

to scripts section of composer.json

```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:

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

### Step 2: Enable the bundle

Enable the bundle in the kernel:

```php