This is my first time using CKeditor and I am trying to get some of the basics working. I have a test page, (not PHP, just basic HTML) with JQuery and Bootstrap loaded and working OK. I have two fields. I have linked to the CKEditor CDN and loaded adapt_jquery.js in the <head>
Relevant HTML
If I place this script at the bottom of the page, I get an instance of CKEditor on each <textarea> with the specified ui color and size.
<script type="text/javascript">
$('textarea').ckeditor(
{
uiColor : '#03BC5D',
language : 'en',
height : 100,
width : 600 ,
}
);
</script>
If I use the script below on the page, an editor is rendered for each <textarea>, and The Firefox web developer plug in shows that custom_config.js is in the list of Javascript files. However the editor instance that loads for each <textarea> had not been affected by my custom config file. I expect that I am missing something simple, but can't figure out what.
<script>
$('textarea').ckeditor(
{
customConfig : '/JQTesting/ck_custom/custom_config.js'
}
);
</script>
Custom Config File:
CKEDITOR.editorConfig = function( config ) {
uiColor : '#03BC5D';
language : 'en';
height : 100;
width : 600;
};