How do I find out what version of TinyMCE I am running?

前端 未结 4 1390
遇见更好的自我
遇见更好的自我 2021-01-01 09:08

How do I find out what version of TinyMCE I am running?

相关标签:
4条回答
  • 2021-01-01 09:26

    go to Chrome Console type tinyMCE.majorVersion and tinyMCE.minorVersion take a look

    0 讨论(0)
  • 2021-01-01 09:28

    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 ;-)

    0 讨论(0)
  • 2021-01-01 09:32

    If you have included tinymce in your page, then you can view it in your browser dev-tool

    tinymce
    

    or

    tinyMCE
    

    and there will be visible majorVersion and minorVersion at first glance

    0 讨论(0)
  • 2021-01-01 09:38

    Open the page, on which you integrate the tinyMCE and press Control+Shift+J

    and type following command.

    tinyMCE
    

    and the output of the above the command, will show both major version, minor version and release date as shown in figure.

    0 讨论(0)
提交回复
热议问题