0

How do I get CKEditor working from the CDN? Fiddle

<script src="http://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.0.1/ckeditor.js"></script>

I have included the JS and here it says that is enough. But I dont seem to get it working :(
Please help!

Update: http://jsfiddle.net/e6MeW/2/

Error: Uncaught TypeError: Object [object Object] has no method 'ckeditor'

Community
  • 1
  • 1
Rahul Desai
  • 15,242
  • 19
  • 83
  • 138

1 Answers1

2

Put this url to External Resource on jsfiddle;

HTML

<div>
  <form>
    <textarea class="ckeditor" id="editor"></textarea>
  </form>
</div>

JS

(function ($) {
  $(document).ready(function () {
    CKEDITOR.replace($('.ckeditor').get(0), {
    });
  });
})(jQuery);

Here is a working fiddle: http://jsfiddle.net/T7m8H/

Hüseyin BABAL
  • 15,400
  • 4
  • 51
  • 73