title: Symfony with Sonata Admin Bundle and rich HTML editor
body: <p>I successfully configured Sonata Admin v3.2 and Sonata Media Bundle in my Symfony 2.8 installation. As you can see the back-end is working fine:</p>
  
  <p><a href="https://i.stack.imgur.com/4Y9tY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Y9tY.png" alt="enter image description here"></a></p>
  
  <p>I wanted to render the <code>content</code> property as a rich HTML so I followed the appropriate guide:</p>
  
  <p><a href="https://sonata-project.org/bundles/formatter/3-x/doc/reference/formatter_widget.html" rel="nofollow noreferrer">https://sonata-project.org/bundles/formatter/3-x/doc/reference/formatter_widget.html</a></p>
  
  <p>I configured the SonataFormatterBundle following the guide step by step but the field doesn't render correctly. This is my config:</p>
  
  <pre><code>#Sonata with Symfony &gt;= 2.6
  form_themes:
      - 'SonataFormatterBundle:Form:formatter.html.twig'
  
  sonata_block:
      default_contexts: [cms]
      blocks:
          # Enable the SonataAdminBundle block
          sonata.admin.block.admin_list:
              contexts:   [admin]
          # Your other blocks
          sonata.formatter.block.formatter:
  
  sonata_formatter:
  ckeditor:
      templates:
          browser: 'SonataFormatterBundle:Ckeditor:browser.html.twig'
          upload: 'SonataFormatterBundle:Ckeditor:upload.html.twig'
  default_formatter: richhtml
  formatters:
      markdown:
          service: sonata.formatter.text.markdown
          extensions:
              - sonata.formatter.twig.control_flow
              - sonata.formatter.twig.gist
              - sonata.media.formatter.twig
  
  
      text:
          service: sonata.formatter.text.text
          extensions:
              - sonata.formatter.twig.control_flow
              - sonata.formatter.twig.gist
              - sonata.media.formatter.twig
  
  
      rawhtml:
          service: sonata.formatter.text.raw
          extensions:
              - sonata.formatter.twig.control_flow
              - sonata.formatter.twig.gist
              - sonata.media.formatter.twig
  
  
      richhtml:
          service: sonata.formatter.text.raw
          extensions:
              - sonata.formatter.twig.control_flow
              - sonata.formatter.twig.gist
              - sonata.media.formatter.twig
  
  
      twig:
          service: sonata.formatter.text.twigengine
          extensions: [] # Twig formatter cannot have extensions
  </code></pre>
  
  <p>And this is my <code>PostAdmin</code> class:</p>
  
  <pre><code>protected function configureFormFields(FormMapper $formMapper)
  {
      $formMapper
          -&gt;add('title')
          -&gt;add('content', 'sonata_simple_formatter_type', array(
              'format' =&gt; 'richhtml',
              'ckeditor_context' =&gt; 'default', // optional
          ))
          -&gt;add('category')
      ;
  }
  </code></pre>
  
  <p>The page is not showing any errors but the field stays as a normal textarea (see my above screenshot).</p>