I'm trying CKEditor (latest download) trying to build up from a simple example before attempting to integrate into my application. I'm using Safari 5.0.3 under OS X 10.6.7, but the problem I'm having happens also with Firefox, Chrome, iCab, and Opera, too.
I took the file _samples/ui_languages.html and stripped out everything to do with the language selection, so that only the editor window shows up. So far so good. Now I want to try altering the toolbar, so I make this change:
I made a copy of config.js in _samples, thus:
I'm reasonably certain it's found my config.js, because I put an alert in there which fired for all the browsers except, for some reason, Safari.
Now, the problem I'm getting is that I have this JavaScript error in ckeditor.js, as reported by Safari's Error Console (and the equivalent in other browsers):
TypeError: Result of expression 'w' [undefined] is not an object. /Users/tim/Desktop/ckeditor/ckeditor.js:90
Can someone suggest what the problem is?
Thanks,
I took the file _samples/ui_languages.html and stripped out everything to do with the language selection, so that only the editor window shows up. So far so good. Now I want to try altering the toolbar, so I make this change:
editor = CKEDITOR.replace ('editor1', { customConfig : 'config.js', language : languageCode, toolbar : 'testbar' } );
I made a copy of config.js in _samples, thus:
CKEDITOR.editorConfig = function (config) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.toolbar = 'testbar'; config.toolbar_testbar = [ ['Source','-','Save','NewPage','Preview','-','Templates'], ... rest of the "full" toolbar settings, copied from the documentation ...
I'm reasonably certain it's found my config.js, because I put an alert in there which fired for all the browsers except, for some reason, Safari.
Now, the problem I'm getting is that I have this JavaScript error in ckeditor.js, as reported by Safari's Error Console (and the equivalent in other browsers):
TypeError: Result of expression 'w' [undefined] is not an object. /Users/tim/Desktop/ckeditor/ckeditor.js:90
Can someone suggest what the problem is?
Thanks,