I'm trying to add CKEditor to the page I'm currently developing, but am having problems getting it to my custom config file? I use CKEditor in Visual Studio .NET 2008. I need to customize the toolbars that appear because Basic is too minimal and Full will provide the user with a huge amount of buttons.
I declare the editor on an aspx page as follows:
<script type="text/javascript">
CKEDITOR.replace(document.getElementById("<%= txtTourItinerary.ClientID %>"),
{ customConfig: 'myconfig.js' }
);
</script>
the myconfig.js file itself is located in the root of the ckeditor directory (where config.js is located).
However, the desipite displaying CKEditor itself seems to completely ignore my custom configuration file. I was wondering if anyone has any suggestions?
Thanks!
The contents of the custom configuration file are as follows:
CKEDITOR.editorConfig = function( config )
{
config.language = 'en';
config.defaultLanguage = 'en';
config.uiColor = '#000000';
};
CKEDITOR.config.toolbar_Full = [['Save', '-', 'Preview', '-' 'Print'],
['Undo', 'Redo'], ['Cut', 'Copy', 'Paste', 'PasteFromWord', 'SelectAll'],
['Find', 'Replace'],
'/',
['Bold', 'Italic', 'Unnderline', 'Strike', '-', 'Subscript', 'Superscript']];