title: How to add CKEditor RTE to typo3 Backend Module with the API?
body: <p>This question is similar to that one: <a href="https://stackoverflow.com/questions/40721754/rte-in-own-backend-module-based-on-extbase-and-fluid">RTE in own backend module based on Extbase and Fluid
  </a> but not the same, so i created a new question.</p>
  
  <hr>
  
  <p>I create a comment-extension for typo3 Version 8.7.7</p>
  
  <p>I have added a RTE Editor (CKEditor) to a textarea field in my BackendModule.</p>
  
  <p>Therefore i have the following TCA in my comment-model:</p>
  
  
  
  <pre class="lang-tca prettyprint-override"><code>'text' =&gt; [
      'exclude' =&gt; true,
      'label' =&gt; 'LLL:EXT:rmcomment/Resources/Private/Language/locallang_db.xlf:tx_rmcomment_domain_model_comment.text',
      'config' =&gt; [
          'type' =&gt; 'text',
          'enableRichtext' =&gt; true,
          'richtextConfiguration' =&gt; 'minimal',
          'fieldControl' =&gt; [
              'fullScreenRichtext' =&gt; [
                  'disabled' =&gt; false,
              ],
          ],
          'cols' =&gt; 40,
          'rows' =&gt; 15,
          'eval' =&gt; 'trim,required',
      ],
  ],
  </code></pre>
  
  <p>The backend template looks like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;f:form action="create" name="newComment" object="{newComment}" arguments="{author:beuser.username, email:beuser.email}"&gt;
  
      &lt;strong&gt;Eingeloggt als: {beuser.realname} (Username: {beuser.username}) (Email: {beuser.email})&lt;/strong&gt;&lt;br&gt;
  
      &lt;label for="commentEmailCheckbox"&gt;Öffentliche E-Mail:&lt;/label&gt;
          &lt;f:form.checkbox id="commentEmailCheckbox" property="mailPublic" value="1" /&gt;
      &lt;br&gt;&lt;br&gt;
  
      &lt;label for="commentText" class="text{rm:hasError(property:'text',then:' text-danger')}"&gt;
          &lt;f:translate key="tx_rmcomment_domain_model_comment.text" /&gt;
          &lt;span class="small"&gt;( &lt;f:translate key="tx_rmcomment_domain_model_comment.required" /&gt; )&lt;/span&gt;
      &lt;/label&gt;&lt;br&gt;
          &lt;f:form.textarea id="commentText" property="text" cols="120" rows="6" /&gt;&lt;br&gt;
  
      &lt;f:form.submit value="{f:translate(key:'tx_rmcomment_domain_model_comment.saveComment')}" class="btn btn-default" /&gt;
  &lt;/f:form&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Is there a better way to make that RTE working for my Backend-Module without "dirty javascript" (**my answer</strong>) inside my fluid-template?**</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I think this is the only solution, so i move the working part to an answer now.</p>