Hi Devs,
is there a way to make CKEditor work with the Rails asset pipeline's fingerprinting? The problem is that Rails adds a fingerprint to filenames, hence a dynamically loaded plugin will not be found.
The commonly found "solution" is to circumvent the asset pipeline and either prevent fingerprinting, or rename the files to their original name. However, this solution is flawed as there is no cache-busting whatsoever and we have to basically tell our users to clear their cache whenever we deploy an update.
I know we can build a ckeditor.js with all plugins included, but we still have to deal with external language and dialog files.
Could you comment on the possibility of either a completely contained ckeditor.js being available in the near future, or a way to provide path mappings for specific files? To illustrate, we could provide CKEditor with a mapping looking like
{ 'path/to/file.js': 'path/to/file-with-fingerprint.js }
Any help would be greatly appreciated.
Thanks in advance
Jaycob
I'm not a Rails dev, so just
I'm not a Rails dev, so just guessing, but perhaps you'll find the answer in this article - Using CKEditor in Rails app.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hi Reinmar,
Hi Reinmar,
thanks for looking into this. Sadly, the link you posted is one of the sources mentioned above that 'fixes' the issue by stripping the fingerprint from the filename. As this disables Rails' cache-busting, this is not a viable solution for us, as we wouldn't know who of our users is running which cached version of the editor. We want to rely on the fact that bugs that may occur are coming from the latest version, or else it will be hard to debug.
So, to repeat the most pressing question: Are there any plans / thoughts on adding an option to CKEditor that would disable dynamic loading and make the programmer responsible for loading all assets? This would help us a great deal.
Thanks
Jaycob