How to check CK editor version

这一生的挚爱 提交于 2019-12-10 00:36:02

问题


There is an existing CK editor folder in my project. How can I find out it's version? Is it documented?


回答1:


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>



回答2:


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



回答3:


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.




回答4:


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




回答5:


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>



回答6:


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



来源:https://stackoverflow.com/questions/15872900/how-to-check-ck-editor-version

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