The move from FCKeditor 2.5.1 to FCKeditor 2.6 included a dramatic change in the way dialogs function and display. In order to make my plugin work nicely with newer and older versions, I would like to be able to detect the version.
I see FCKeditor.prototype.Version = '2.6' ; in fckeditor.js, and 'Version : "2.6" in fckeditorapi.js, but I haven't been able to access either of them from the FCK object. I'm trying this using the _samples/default.html page and wondering if the frames are causing problems.
I need this to work regardless of the frame structure. Is there a way to get the FCKeditor object or FCKeditorAPI object from the FCK object? Is there another way to detect the version?
Thanks,
-Gilan
I see FCKeditor.prototype.Version = '2.6' ; in fckeditor.js, and 'Version : "2.6" in fckeditorapi.js, but I haven't been able to access either of them from the FCK object. I'm trying this using the _samples/default.html page and wondering if the frames are causing problems.
I need this to work regardless of the frame structure. Is there a way to get the FCKeditor object or FCKeditorAPI object from the FCK object? Is there another way to detect the version?
Thanks,
-Gilan

Re: How can my plugin code detect which version of FCK is runnin
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn