title: Ckeditor angular directive doesn't work
body: <p>I use below code to show ckeditor using angularjs directive . but it doesn't show in th page . </p>
  
  <p>directive : </p>
  
  <pre><code>'use strict';
  define('ngCkeditor', ['app'], function (app) {
  app.directive('ngCkeditor', function () {
      return {
          restrict: 'AC',
          require: 'ngModel',
          link: function (scope, element, attr, ngModel) {
  
              debugger;
              var ck = CKEDITOR.replace(element[0]);
              if (!ngModel) return;
              ck.on('pasteState', function () {
                  scope.$apply(function () {
                      ngModel.$setViewValue(ck.getData());
                  });
              });
              ngModel.$render = function (value) {
                  ck.setData(ngModel.$viewValue);
              };
  
          }
      };
  });
  });
  </code></pre>
  
  <p>and the Controller : </p>
  
  <pre><code>define('ckEditorController', ['app', 'ckeditor', 'ckfinder', 'ngCkeditor'], function (app, ckeditor, ckfinder, ngCkeditor) {
  app.lazy.controller('ckEditorController', ['$scope', '$location', function ($scope, $location) {
  
      debugger;
          $scope.text = 'this is test';
  
  }]);
  });
  </code></pre>
  
  <p>and this is the Html :</p>
  
  <pre><code>&lt;link href="~/app/lib/editor/css/bootstrap.css" rel="stylesheet" /&gt;
  &lt;link href="~/app/lib/editor/ng-ckeditor.css" rel="stylesheet" /&gt;
  &lt;h2&gt;CkEditor&lt;/h2&gt;
  &lt;form name="frm"&gt;
  &lt;div ng-controller="ckEditorController"&gt;
      &lt;textarea class="ng-Ckeditor" ng-model="text"&gt;&lt;/textarea&gt;
      &lt;textarea ng-ckeditor ng-model="text"&gt;&lt;/textarea&gt;
      &lt;h3&gt;Result HTML:&lt;/h3&gt;
      &lt;div ng-bind-html-unsafe="text"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>it seems to me the link part in directive doesn't fire .</p>
  
  <p>thanks</p>
  
  <p>update : </p>
  
  <p>look at <a href="http://jsfiddle.net/fvApg/1/" rel="nofollow">jsfiddle</a> link . It works like a charm . but mine doesn't</p>