title: CKEditor not showing with Sonata Formatter (Sonata Admin Bundle)
body: <p>I'm having troubles using the <a href="https://www.google.com/url?q=https%3A%2F%2Fsonata-project.org%2Fbundles%2Fformatter%2Fmaster%2Fdoc%2Findex.html&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNFBDlzAZFQk_PUzLIZqZZZ4nEbNMA" rel="nofollow noreferrer">Sonata Formatter Bundle</a>.</p>
  <p>In my <strong>config.yml</strong> I have the following (amongst other stuff):</p>
  <pre><code>imports:
      - { resource: sonata.yml }
  
  twig:
      debug:            &quot;%kernel.debug%&quot;
      strict_variables: &quot;%kernel.debug%&quot;
  
      #sonata
      form:
          resources:
              # ...
              - 'SonataFormatterBundle:Form:formatter.html.twig'
  </code></pre>
  <p>In my <strong>sonata.yml</strong> file I have:</p>
  <pre><code>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:
      formatters:
          markdown:
              service: sonata.formatter.text.markdown
              extensions:
                  - sonata.formatter.twig.control_flow
                  - sonata.formatter.twig.gist
          #        - sonata.media.formatter.twig #keep this commented unless you are using media bundle.
  
  
          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
  
      ckeditor:
          templates:
              browser: 'SonataFormatterBundle:Ckeditor:browser.html.twig'
              upload: 'SonataFormatterBundle:Ckeditor:upload.html.twig'
  
  ivory_ck_editor:
      configs:
          default:
              language:  '%locale%'
              toolbar: standard
  
  sonata_admin:
      templates:
          layout:                 DXEenhanaBundle:Admin:standard_layout.html.twig
  </code></pre>
  <p>I've added the needed CSS and JS to my <strong>standard_layout.html.twig</strong> file and they are correctly loaded.</p>
  <p>In my Admin file I have the following:</p>
  <pre><code>$formMapper
      -&gt;add('name', 'text', array('label' =&gt; 'Applicant Name'))
      -&gt;add('contacts', 'sonata_formatter_type', array(
          'event_dispatcher' =&gt; $formMapper-&gt;getFormBuilder()-&gt;getEventDispatcher(),
          'format_field'   =&gt; 'contacts',
          'source_field'   =&gt; 'contacts',
          'source_field_options'      =&gt; array(
              'attr' =&gt; array('class' =&gt; 'span10', 'rows' =&gt; 7)
          ),
          'ckeditor_context' =&gt; 'default',
          'listener'       =&gt; true,
          'target_field'   =&gt; 'contacts',
          'label' =&gt; 'Contacts'
      ))
      ...
  </code></pre>
  <p>I see a textarea but no ckeditor in my textarea, what am I missing?
  This is what I see in my browser:
  <img src="https://i.stack.imgur.com/N0Jdd.png" alt="enter image description here" /></p>
  <p>I'm also not getting any console errors or other errors ... .</p>