tags:

views:

270

answers:

1

how do i find out what version of tinymce i am running

+2  A: 

Having a look at the source of tinymce (file tiny_mce_src.js, which is easier to read than, tiny_mce.js which is minified) :

var tinymce = {
    majorVersion : '3',
    minorVersion : '2.5',
    releaseDate : '2009-06-29',

    // lots of code ^^

})();

So, I'd say that, in Javascript, something like this :

tinymce.majorVersion + '.' + tinymce.minorVersion

would do.


I tried it on the demo page, using firebug, and I get :

>>> tinymce.majorVersion + '.' + tinymce.minorVersion
"3.2.5"

So, seems to be working ;-)

Pascal MARTIN