Anirudha Gupta
Anirudha Gupta

Reputation: 9299

how i can remove the linking toolbar from ckeditor?

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

Answers (2)

joostschouten
joostschouten

Reputation: 3893

Everything you need to know can be found at: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar

PS: Google is your friend

Upvotes: 1

Anubis
Anubis

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

Related Questions