2017 © Pedro Peláez
 

symfony-bundle tinymce-bundle

Integrate TinyMCE 4.x editor into symfony2

image

nmb/tinymce-bundle

Integrate TinyMCE 4.x editor into symfony2

  • Saturday, October 26, 2013
  • by Badji
  • Repository
  • 1 Watchers
  • 1 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NmbTinymceBundle

Integrate TinyMCE 4.x editor into symfony2, (*1)

Installation

Add NmbTinymceBundle to your composer.json, (*2)

{
    "require": {
        "nmb/tinymce-bundle": "dev-master"
    }
}

Download the bundle by runung the command ``` bash $php composer.phar update nmb/tinymce-bundle, (*3)


Add the bundle to your app/AppKernel.php ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Nmb\TinymceBundle\NmbTinymceBundle(), ); }

Configuration

You can add as many configurations as you want under nmb_tinymce key, name it as you want, and choose witch one you want to use on every tinymce instance. refer to tinymce documentation for the configuration itself: http://www.tinymce.com/wiki.php/Installation ``` yaml, (*4)

app/config/config.yml

nmb_tinymce: configs: my_basic_config: selector: textarea advanced_config: selector: "textarea#elm1" theme: "modern" width: 300 height: 300 plugins: ["advlist autolink link image lists","searchreplace wordcount visualblocks code","save table contextmenu directionality textcolor"] content_css: "css/content.css" toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons" style_formats: [ [title: 'Bold text', inline: 'b'], [title: 'exmample 2', inline: 'span', styles: [color: '#fff000']] ]
other_config: ..., (*5)


## Usage In your twig template ``` twig {{ nmb_tinymce_init('my_config_key') }}

The Versions

26/10 2013

dev-master

9999999-dev

Integrate TinyMCE 4.x editor into symfony2

  Sources   Download

MIT

The Requires

 

symfony tinymce wysiwyg