Reputation: 9299
I want to show the ckeditor by removing the linking and uplinking control. How can I remove them.
can someone show me how i can do this without changing the config file. I need to do this from within my own js file.
I need to configure before the initialization and rendering on the page.
Upvotes: 0
Views: 862
Reputation: 3893
Everything you need to know can be found at: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar
Upvotes: 1
Reputation: 2624
FCKConfig.ToolbarSets["MyToolbarSet"] = [
['Bold', 'Italic', 'Underline'] // enumerate all buttons you need
];
var oFCKeditor = new FCKeditor('MyTextArea');
oFCKeditor.BasePath = '<%= Url.Content("~/Scripts/fckeditor/") %>';
oFCKeditor.ToolbarSet = "MyToolbarSet";
oFCKeditor.Height = 300;
oFCKeditor.Width = 700;
oFCKeditor.ReplaceTextarea();
Upvotes: 1