For some reason config.js is not loading. I installed CK Editor basically "out of the box", dropping all the files with their default folders into a folder named CKEditor off the root of my site.
Below is my control added to a .Net page
<CKEditor:CKEditorControl ID="CKEditorHeader" BasePath="~/ckeditor/" Toolbar="Full" Width="100%" Height="200" runat="server"></CKEditor:CKEditorControl>
All I want to do first is change the enter key behavior from <p> to <br>
So I made 1 change to config.js
CKEDITOR.editorConfig = function( config )
{
enterMode: CKEDITOR.ENTER_BR;
};
Behavior didn't change. I added alert("OK"); below enterMode: CKEDITOR.ENTER_BR; The alert didn't popup.
I changed the control settings and added CustomConfig="~/ckeditor/config.js" to the control. Still no alert.
I removed the CustomConfig setting and added this
The script loads but it throws an error 0x800a1391 - JavaScript runtime error: 'CKEDITOR' is undefined
I removed that change and added
<script type="text/javascript">
CKEDITOR.editorConfig = function (config) {
CKEDITOR.ENTER_BR
};
</script>
Now the script executes, and the first time I get the undefined error. Then the 2nd and 3rd times (the page has 2 editors on it), the alert pops up.
I know the config.js file is loading. I can see it loaded in Visual Studio when the app runs. But the content doesn't seem to get executed.
And yes, I've cleared the cache dozens of times and pressed F5 more times than I can remember.