Advertisements

Removing Toolbar in CKEditor


Follow the below steps:

Step 1 : Go to ckeditor folder and click config.js folder then add this below code.

CKEDITOR.editorConfig = function (config)  
{  
   config.toolbar = ‘Custom’; //makes all editors use this toolbar  
   config.toolbar_Custom = []; //define an empty array or whatever buttons you want.  
};  

Step 2 : Remove toolbar in particular ckeditor ,then copy ur ckeditor folder and change basepathname.

Advertisements

Integrating CkFinder in CKEditer,Asp.net



 

//code behind

protected override void OnLoad(EventArgs e)
{
CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
_FileBrowser.BasePath = “../ckeditor/ckfinder/”;
_FileBrowser.SetupCKEditor(CKEditor1);
//_FileBrowser.SetupCKEditor(CKEditor2);//do u have 2 ckediter then put this file in code behind
}

//download ckfinder then put inside ckeditor folder.. http://cksource.com/ckfinder/download
//delete fckeditor in aspx file inside ckfinder
//copy dll file inside bin file and paste into main bin file inside root folder
//change base url, inside the userfiles/config.ascx to  “~/ckfinder/userfiles”

 


CKEditer implmenting in Asp.net



 

<%@ Register Assembly=”CKEditor.NET” Namespace=”CKEditor.NET” TagPrefix=”CKEditor” %>

<CKEditor:CKEditorControl ID=”CKEditor2″ runat=”server” basepath=”~/ckeditor/” Height=”200px” style=”margin-bottom: 15px” Width=”450px”></CKEditor:CKEditorControl>

//Setting language in ckediter.Put this code in page behind

CKEditor2.config.language = “ar”; //(Arabic Language).

 


%d bloggers like this: