How to check CK editor version

馋奶兔 提交于 2019-12-04 22:14:17
kumar

just make an alert as below in the config.js file, it gives the value

alert(CKEDITOR.version);

or you can see it directly in the file ckeditor_php4.php, for eg:

var $version = '3.6.3';

working demo :

alert(CKEDITOR.version);
console.log("CKEDITOR.version ==",CKEDITOR.version);
   <head>
                <meta charset="utf-8">
                <title>CKEditor</title>
                <script src="https://cdn.ckeditor.com/4.11.4/standard/ckeditor.js"></script>
        </head>
        <body>
                <textarea id="editor1"></textarea>
                <script>
                        CKEDITOR.replace( 'editor1' );
                </script>
        </body>

I checked version 3.6 and version info is located f.e. in:

/ckeditor/CHANGES.html

CKEditor Changelog

CKEditor 3.6.6.1

4.X uses mark down file:

/ckeditor/CHANGES.md

CKEditor 4 Changelog
====================

## CKEditor 4.4.1

In latest CKEditors there is a button in default panel "?". Click it and you'll see version number. Otherwise if button not exist you need to check source files. At the beginning they definitely should contain author data & version number.

CKEDITOR.version

running this in the console should tell you the version.

And as for the documentation, you can find it in this URL:

https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR.html#property-version

CKEDITOR.version will give current version of CKEDITOR

alert(CKEDITOR.version);
console.log("CKEDITOR.version ==",CKEDITOR.version);
   <head>
                <meta charset="utf-8">
                <title>CKEditor</title>
                <script src="https://cdn.ckeditor.com/4.11.4/standard/ckeditor.js"></script>
        </head>
        <body>
                <textarea id="editor1"></textarea>
                <script>
                        CKEDITOR.replace( 'editor1' );
                </script>
        </body>
Dhaval

Look inside the ckeditor/ckeditor.js file. At the top of the file, you can find the version.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!