I\'m using CKEditor and would like to be able to allow users to upload and embed images in the Text Editor...
The following JS is what loads the CKEditor:
My latest issue was how to integrate CKFinder for image upload in CKEditor. Here the solution.
Download CKEditor and extract in your web folder root.
Download CKFinder and extract withing ckeditor folder.
Then add references to the CKEditor, CKFinder and put
to your aspx page.
In code behind page OnLoad event add this code snippet
protected override void OnLoad(EventArgs e)
{
CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
_FileBrowser.BasePath = "ckeditor/ckfinder/";
_FileBrowser.SetupCKEditor(CKEditorControl1);
}
Edit Confic.ascx file.
public override bool CheckAuthentication()
{
return true;
}
// Perform additional checks for image files.
SecureImageUploads = true;
(source)