Created
January 17, 2012 14:50
-
-
Save ideadapt/1626913 to your computer and use it in GitHub Desktop.
add tinymce to form field in symfony2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$formMapper | |
->with('General') | |
->add('title') | |
->add('blog', 'textarea', array('attr' => array('class' => 'tinymce', 'tinymce'=>'{"theme":"simple"}'))) |
To debug you can write to a logger and check the logfile after the request. See http://symfony.com/doc/current/cookbook/logging/monolog.html. Or you could debug your php code using xdebug ...
I have the FormTypeFieldExtension.php file too, with the same content as you do. I didnt change it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found class
vendor\bundles\Sonata\AdminBundle\Form\Extension\Field\Type\FormTypeFieldExtension.php
string 110 $attr = $view->get('attr', array());
this class does not get attr param from formMapper why? and how to debug it....