How to integrate CKFinder to CKEditor in ASP.NET - MVC 3

3.3k Views Asked by At

I integrate CKEditor in my MVC 3 application. But I couldn't integrate CkFinder to CKEditor. I read documents

I wrote this code in my view.

<script src="@Url.Content("~/ckeditor/ckeditor.js")" type="text/javascript"></script>
<script src="@Url.Content("~/ckfinder/ckfinder.js")" type="text/javascript"></script>
<script>
  var editor = CKEDITOR.replaceClass("ckeditor");
  CKFinder.setupCKEditor(editor, '/ckfinder/');
</script>

What I am doing wrong ?

Thank you.

1

There are 1 best solutions below

0
On

CKEDITOR.replaceClass is a property, not a method so you should have an error right there. All you need is the second call with a null editor and using the proper folder, maybe something like

CKFinder.setupCKEditor(null, '@Url.Content("~/ckfinder/")');