I downloaded a source (Big N'Slow) Basic build from http://ckeditor.com/download and load it into a .html file with a minimal HTML file. Here are a few issues:
- I've noticed that CKEDITOR.version is set to "%VERSION%", which looks like the downloaded version has not been run through something that should have replaced that token.
- In this case (with %VERSION%), if I specify a customConfig when calling CKEDITOR.replace, instanceReady listeners are never called. This occurs even when the customConfig file is empty. It doesn't happen when I download a version of CKEditor that doesn't have the %VERSION% token (but intead has a regular version number).
- When I upload a build config file with skin: 'bootstrapck' in it, the build that's downloaded still has skin: 'moono' at bottom, which causes a 404 because the moono skin is not included in the download.
In summary, problem is that when I download a source version, I get the %VERSION% setting of CKEDITOR.version and this prevents me from using customConfig (because using that results in the instanceReady callbacks not being called).
Thanks for any help!
Terry
Thanks for your report!
Thanks for your report!
The %VERSION% issue itself does not look critical, as basically the source version from github works exactly the same. The Big N'Slow version is somehow a substitute to downloading sources from Github and then adding additional plugins, for anyone that does not feel comfortable with git.
The Big N'Slow version is definitely not designed to be run on production sites etc.
Anyway, after this long introduction, let me addd that the rest of described issues look interesting. I'll investigate this and let you know,
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
I verified all the reported
I verified all the reported problems, here are my results:
This is true, but I assume that you noticed this just because you started debugging why you are having the three other issues
Works for me. instanceReady listeners are fired, I tested it using the replacebycode sample with:
The customConfig option works as well, I did specify a custom config with everything that was in the default configuration file and one additional option:
and everything worked fine.
I even added a listener in the configuration file, which is rather a bad practice in general, and it worked:
Works for me as well. No 404s, bootstrapck skin is used properly. I believe that the answer for all the issues is one: browser cache.
Please make sure to force the browser to clear the cache whenever you work on JavaScript files.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Still can't make it work
Hi Wictor
Thanks for the reply & for digging into this. I guess I must be doing something wrong. My browser cache isn't the problem, AFAICT (I have cleared it, and I work on changing JS all day without problems).
I've made a zip file for you to illustrate my problem. If you unzip it in the root directory of the latest master, you'll see 3 new files: test.html, test.js, and custom.js. When I open test.html in Chrome, Safari, or Firefox the editor window has no toolbar and the single console.log line in custom.js is not logged.
You said "I did specify a custom config with everything that was in the default configuration file." Is it documented that you're supposed to do that? When I put a copy of config.js into custom.js and comment out the customConfig: 'config.js' line from the copy of config.js, the custom file still fails to log the message and the toolbar does not appear.
If I take the customConfig out of the CKEDITOR.replace call, the editor shows up fine.
Maybe you could give an example zip file of something that works for you?
My earlier comments about %VERSION% and instanceReady not firing can be ignored. I tried replacing the version (and revision) myself with specific values, but it didn't help. The instanceReady event fires for me too.
Let me know if I can help & I'll try to be faster at answering. It'd be really nice not to have to develop against a minified version of the CKEditor JS! :-)
The zip file I made for you is at http://jon.es/other/custom-config.zip