title: add controller to a angular-tiny template
body: <p>I'm trying to use tinyMCE in my angualar app. I'm using the directive provided by angular-ui-tinymce module. I have a state in wich i put the textarea and i want to buitd some templates that the user can choice. Moreover, I want to make dynamic these template. Here is my controller :</p>
  
  <pre><code>(function(){
   'use strict';
    angular
    .module('app.core')
        .controller('refertazioneController', refertazioneController);
  
   function refertazioneController($stateParams){
     var vm = this;
     vm.prova="refertazioneController";
     vm.tinymceModel = '';
     vm.sospeso=true;
     vm.params = $stateParams;
     vm.currentUser = sessionStorage;
     vm.tinymceOptions = {
  
    inline: false,
    slector: 'textarea',
  
    height: 500,
    plugins : 'advlist autolink link image lists charmap print preview template save',
    skin: 'lightgray',
    theme : 'modern',
    language:'it',
    statusbar: false,
    templates:[ {title: 'Titolo1', description: 'Descrizione1', url: 'sections/refertazione/referto1.html'},
                {title: 'Titolo2', description: 'Secondo referto', url: 'sections/refertazione/referto1.html'}
              ]
  };
  }
  })();
  </code></pre>
  
  <p>and this is the template: </p>
  
  <pre><code>&lt;p style="text-align: center;"&gt;
   &lt;strong&gt;A.S.L. 02 LANCIANO-VASTO-CHIETI&lt;/strong&gt;
  &lt;/p&gt;
  &lt;p style="text-align: center;"&gt;
   &lt;strong&gt;Ospedale Clinicizzato "SS.Annunziata"&lt;/strong&gt;
  &lt;/p&gt;
  &lt;p style="text-align: center;"&gt;
   &lt;strong&gt;Servizio Radiologia&lt;/strong&gt;
  &lt;/p&gt;
   &lt;p style="text-align: center;"&gt;
    &lt;strong&gt;Sezione di Scienze Radiologiche&amp;nbsp;dell Universit&amp;agrave;        &lt;/strong&gt;
  &lt;/p&gt;
  &lt;p style="text-align: center;"&gt;Direttore: Prof. Antonio Raffaele    Cotroneo&lt;/p&gt;
  </code></pre>
  
  <p>the problem is that I can not use my controller in the template. I tryed to handle the template like a state in ui router but the same. Can someone suggest me an approach?</p>