Переглянути джерело

Added a "dev" flag to CKEDITOR.

fredck 11 роки тому
батько
коміт
2946304524
1 змінених файлів з 8 додано та 0 видалено
  1. 8 0
      src/ckeditor-dev.js

+ 8 - 0
src/ckeditor-dev.js

@@ -9,6 +9,14 @@
 
 
 define( 'ckeditor-dev', function() {
 define( 'ckeditor-dev', function() {
 	return {
 	return {
+		/**
+		 * A flag specifying whether CKEditor is running in development mode (original source code).
+		 *
+		 * This property is not defined in production (compiled, build code).
+		 */
+		isDev: true,
+
+		// Documented in ckeditor-core/ckeditor.
 		getPluginPath: function( name ) {
 		getPluginPath: function( name ) {
 			return this.basePath + 'node_modules/ckeditor-plugin-' + name + '/src/';
 			return this.basePath + 'node_modules/ckeditor-plugin-' + name + '/src/';
 		}
 		}