浏览代码

update to v44 with tests

Andrey Titovskiy 1 月之前
父节点
当前提交
f94b86f71f
共有 85 个文件被更改,包括 8378 次插入2784 次删除
  1. 1 1
      build/ckeditor.js
  2. 6 2
      build/ckeditor.js.LICENSE.txt
  3. 1 1
      build/ckeditor.js.map
  4. 1 1
      build/translations/af.js
  5. 1 1
      build/translations/ar.js
  6. 1 1
      build/translations/ast.js
  7. 1 1
      build/translations/az.js
  8. 1 1
      build/translations/bg.js
  9. 1 1
      build/translations/bn.js
  10. 1 1
      build/translations/bs.js
  11. 1 1
      build/translations/ca.js
  12. 1 1
      build/translations/cs.js
  13. 1 1
      build/translations/da.js
  14. 1 1
      build/translations/de-ch.js
  15. 1 1
      build/translations/de.js
  16. 1 1
      build/translations/el.js
  17. 1 1
      build/translations/en-au.js
  18. 1 1
      build/translations/en-gb.js
  19. 1 1
      build/translations/en.js
  20. 1 1
      build/translations/eo.js
  21. 1 1
      build/translations/es-co.js
  22. 1 1
      build/translations/es.js
  23. 1 1
      build/translations/et.js
  24. 1 1
      build/translations/eu.js
  25. 1 1
      build/translations/fa.js
  26. 1 1
      build/translations/fi.js
  27. 1 1
      build/translations/fr.js
  28. 1 1
      build/translations/gl.js
  29. 1 1
      build/translations/gu.js
  30. 1 1
      build/translations/he.js
  31. 1 1
      build/translations/hi.js
  32. 1 1
      build/translations/hr.js
  33. 1 1
      build/translations/hu.js
  34. 1 0
      build/translations/hy.js
  35. 1 1
      build/translations/id.js
  36. 1 1
      build/translations/it.js
  37. 1 1
      build/translations/ja.js
  38. 1 1
      build/translations/jv.js
  39. 1 1
      build/translations/kk.js
  40. 1 1
      build/translations/km.js
  41. 1 1
      build/translations/kn.js
  42. 1 1
      build/translations/ko.js
  43. 1 1
      build/translations/ku.js
  44. 1 1
      build/translations/lt.js
  45. 1 1
      build/translations/lv.js
  46. 1 1
      build/translations/ms.js
  47. 1 1
      build/translations/nb.js
  48. 1 1
      build/translations/ne.js
  49. 1 1
      build/translations/nl.js
  50. 1 1
      build/translations/no.js
  51. 1 1
      build/translations/oc.js
  52. 1 1
      build/translations/pl.js
  53. 1 1
      build/translations/pt-br.js
  54. 1 1
      build/translations/pt.js
  55. 1 1
      build/translations/ro.js
  56. 1 1
      build/translations/si.js
  57. 1 1
      build/translations/sk.js
  58. 1 1
      build/translations/sl.js
  59. 1 1
      build/translations/sq.js
  60. 1 1
      build/translations/sr-latn.js
  61. 1 1
      build/translations/sr.js
  62. 1 1
      build/translations/sv.js
  63. 1 1
      build/translations/th.js
  64. 1 0
      build/translations/ti.js
  65. 1 1
      build/translations/tk.js
  66. 1 1
      build/translations/tr.js
  67. 1 1
      build/translations/tt.js
  68. 1 1
      build/translations/ug.js
  69. 1 1
      build/translations/uk.js
  70. 1 1
      build/translations/ur.js
  71. 1 1
      build/translations/uz.js
  72. 1 1
      build/translations/vi.js
  73. 1 1
      build/translations/zh-cn.js
  74. 1 1
      build/translations/zh.js
  75. 5456 1315
      package-lock.json
  76. 33 33
      package.json
  77. 1 1
      sample/index.html
  78. 3 1
      src/ckeditor.js
  79. 8 6
      tests/ckeditor.js
  80. 5 2
      tests/manual/ckeditor-amd-version.html
  81. 3 1
      tests/manual/ckeditor-cjs-version.js
  82. 5 2
      tests/manual/ckeditor-global-version.html
  83. 3 1
      tests/manual/ckeditor.js
  84. 6 3
      webpack.config.js
  85. 2776 1346
      yarn.lock

文件差异内容过多而无法显示
+ 1 - 1
build/ckeditor.js


+ 6 - 2
build/ckeditor.js.LICENSE.txt

@@ -2,13 +2,17 @@
 
 /* istanbul ignore else: This is always true because otherwise it would not register a reducer callback. -- @preserve */
 
+/* istanbul ignore file -- @preserve */
+
 /* istanbul ignore if -- @preserve */
 
 /* istanbul ignore if: paranoid check -- @preserve */
 
 /* istanbul ignore next -- @preserve */
 
+/* istanbul ignore next: static function definition -- @preserve */
+
 /**
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
  */

文件差异内容过多而无法显示
+ 1 - 1
build/ckeditor.js.map


文件差异内容过多而无法显示
+ 1 - 1
build/translations/af.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ar.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ast.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/az.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/bg.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/bn.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/bs.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ca.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/cs.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/da.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/de-ch.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/de.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/el.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/en-au.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/en-gb.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/en.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/eo.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/es-co.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/es.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/et.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/eu.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/fa.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/fi.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/fr.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/gl.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/gu.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/he.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/hi.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/hr.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/hu.js


文件差异内容过多而无法显示
+ 1 - 0
build/translations/hy.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/id.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/it.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ja.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/jv.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/kk.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/km.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/kn.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ko.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ku.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/lt.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/lv.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ms.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/nb.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ne.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/nl.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/no.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/oc.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/pl.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/pt-br.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/pt.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ro.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/si.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/sk.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/sl.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/sq.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/sr-latn.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/sr.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/sv.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/th.js


文件差异内容过多而无法显示
+ 1 - 0
build/translations/ti.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/tk.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/tr.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/tt.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ug.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/uk.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/ur.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/uz.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/vi.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/zh-cn.js


文件差异内容过多而无法显示
+ 1 - 1
build/translations/zh.js


文件差异内容过多而无法显示
+ 5456 - 1315
package-lock.json


+ 33 - 33
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ckeditor/ckeditor5-build-classic",
-  "version": "38.0.0",
+  "version": "44.3.0",
   "description": "The classic editor build of CKEditor 5 – the best browser-based rich text editor.",
   "keywords": [
     "ckeditor5-build",
@@ -25,38 +25,38 @@
     "build"
   ],
   "devDependencies": {
-    "@ckeditor/ckeditor5-adapter-ckfinder": "^38.0.1",
-    "@ckeditor/ckeditor5-alignment": "^38.0.1",
-    "@ckeditor/ckeditor5-autoformat": "^38.0.1",
-    "@ckeditor/ckeditor5-basic-styles": "^38.0.1",
-    "@ckeditor/ckeditor5-block-quote": "^38.0.1",
-    "@ckeditor/ckeditor5-ckfinder": "^38.0.1",
-    "@ckeditor/ckeditor5-clipboard": "^38.0.1",
-    "@ckeditor/ckeditor5-code-block": "38.0.1",
-    "@ckeditor/ckeditor5-dev-utils": "^38.0.1",
+    "@ckeditor/ckeditor5-adapter-ckfinder": "^44.3.0",
+    "@ckeditor/ckeditor5-alignment": "^44.3.0",
+    "@ckeditor/ckeditor5-autoformat": "^44.3.0",
+    "@ckeditor/ckeditor5-basic-styles": "^44.3.0",
+    "@ckeditor/ckeditor5-block-quote": "^44.3.0",
+    "@ckeditor/ckeditor5-ckfinder": "^44.3.0",
+    "@ckeditor/ckeditor5-clipboard": "^44.3.0",
+    "@ckeditor/ckeditor5-code-block": "^44.3.0",
+    "@ckeditor/ckeditor5-dev-utils": "^44.2.1",
     "@ckeditor/ckeditor5-dev-webpack-plugin": "^31.1.13",
-    "@ckeditor/ckeditor5-dev-translations": "^38.0.0",
-    "@ckeditor/ckeditor5-easy-image": "^38.0.1",
-    "@ckeditor/ckeditor5-editor-balloon": "^38.0.1",
-    "@ckeditor/ckeditor5-editor-classic": "^38.0.1",
-    "@ckeditor/ckeditor5-editor-decoupled": "^38.0.1",
-    "@ckeditor/ckeditor5-editor-inline": "^38.0.1",
-    "@ckeditor/ckeditor5-essentials": "^38.0.1",
-    "@ckeditor/ckeditor5-font": "^38.0.1",
-    "@ckeditor/ckeditor5-heading": "^38.0.1",
-    "@ckeditor/ckeditor5-html-embed": "^38.0.1",
-    "@ckeditor/ckeditor5-image": "^38.0.1",
-    "@ckeditor/ckeditor5-indent": "^38.0.1",
-    "@ckeditor/ckeditor5-link": "^38.0.1",
-    "@ckeditor/ckeditor5-list": "^38.0.1",
-    "@ckeditor/ckeditor5-media-embed": "^38.0.1",
-    "@ckeditor/ckeditor5-paragraph": "^38.0.1",
-    "@ckeditor/ckeditor5-paste-from-office": "^38.0.1",
-    "@ckeditor/ckeditor5-remove-format": "^38.0.1",
-    "@ckeditor/ckeditor5-table": "^38.0.1",
-    "@ckeditor/ckeditor5-theme-lark": "^38.0.1",
-    "@ckeditor/ckeditor5-typing": "^38.0.1",
-    "@ckeditor/ckeditor5-horizontal-line": "^38.1.1",
+    "@ckeditor/ckeditor5-dev-translations": "^44.2.1",
+    "@ckeditor/ckeditor5-easy-image": "^44.3.0",
+    "@ckeditor/ckeditor5-editor-balloon": "^44.3.0",
+    "@ckeditor/ckeditor5-editor-classic": "^44.3.0",
+    "@ckeditor/ckeditor5-editor-decoupled": "^44.3.0",
+    "@ckeditor/ckeditor5-editor-inline": "^44.3.0",
+    "@ckeditor/ckeditor5-essentials": "^44.3.0",
+    "@ckeditor/ckeditor5-font": "^44.3.0",
+    "@ckeditor/ckeditor5-heading": "^44.3.0",
+    "@ckeditor/ckeditor5-html-embed": "^44.3.0",
+    "@ckeditor/ckeditor5-image": "^44.3.0",
+    "@ckeditor/ckeditor5-indent": "^44.3.0",
+    "@ckeditor/ckeditor5-link": "^44.3.0",
+    "@ckeditor/ckeditor5-list": "^44.3.0",
+    "@ckeditor/ckeditor5-media-embed": "^44.3.0",
+    "@ckeditor/ckeditor5-paragraph": "^44.3.0",
+    "@ckeditor/ckeditor5-paste-from-office": "^44.3.0",
+    "@ckeditor/ckeditor5-remove-format": "^44.3.0",
+    "@ckeditor/ckeditor5-table": "^44.3.0",
+    "@ckeditor/ckeditor5-theme-lark": "^44.3.0",
+    "@ckeditor/ckeditor5-typing": "^44.3.0",
+    "@ckeditor/ckeditor5-horizontal-line": "^44.3.0",
     "css-loader": "^6.8.1",
     "postcss": "^8.4.24",
     "postcss-loader": "^7.3.3",
@@ -85,6 +85,6 @@
     "preversion": "npm run build"
   },
   "dependencies": {
-    "@ckeditor/ckeditor5-special-characters": "^38.0.1"
+    "@ckeditor/ckeditor5-special-characters": "^44.3.0"
   }
 }

+ 1 - 1
sample/index.html

@@ -75,7 +75,7 @@
 	<script>CustomEditors.ClassicEditor
 			.create(document.querySelector('.editor'), {
 				language: 'ru-ru',
-				licenseKey: '',
+				licenseKey: 'GPL',
 			})
 			.then(editor => {
 				window.editor = editor;

+ 3 - 1
src/ckeditor.js

@@ -202,7 +202,9 @@ const defaultConfig = {
 		],
 	},
 	// This value must be kept in sync with the language defined in webpack.config.js.
-	language: 'en'
+	language: 'en',
+	// License configuration for GPL version
+	licenseKey: 'GPL'
 };
 
 BalloonEditor.defaultConfig = defaultConfig;

+ 8 - 6
tests/ckeditor.js

@@ -36,7 +36,7 @@ describe( 'ClassicEditor build', () => {
 
 	describe( 'create()', () => {
 		beforeEach( () => {
-			return ClassicEditor.create( editorElement )
+			return ClassicEditor.create( editorElement, { licenseKey: 'GPL' } )
 				.then( newEditor => {
 					editor = newEditor;
 				} );
@@ -58,7 +58,7 @@ describe( 'ClassicEditor build', () => {
 
 	describe( 'destroy()', () => {
 		beforeEach( () => {
-			return ClassicEditor.create( editorElement )
+			return ClassicEditor.create( editorElement, { licenseKey: 'GPL' } )
 				.then( newEditor => {
 					editor = newEditor;
 				} );
@@ -85,7 +85,7 @@ describe( 'ClassicEditor build', () => {
 
 	describe( 'plugins', () => {
 		beforeEach( () => {
-			return ClassicEditor.create( editorElement )
+			return ClassicEditor.create( editorElement, { licenseKey: 'GPL' } )
 				.then( newEditor => {
 					editor = newEditor;
 				} );
@@ -176,7 +176,8 @@ describe( 'ClassicEditor build', () => {
 		it( 'allows configuring toolbar items through config.toolbar', () => {
 			return ClassicEditor
 				.create( editorElement, {
-					toolbar: [ 'bold' ]
+					toolbar: [ 'bold' ],
+					licenseKey: 'GPL'
 				} )
 				.then( newEditor => {
 					editor = newEditor;
@@ -191,7 +192,8 @@ describe( 'ClassicEditor build', () => {
 				.create( editorElement, {
 					toolbar: {
 						viewportTopOffset: 42
-					}
+					},
+					licenseKey: 'GPL'
 				} )
 				.then( newEditor => {
 					editor = newEditor;
@@ -205,6 +207,6 @@ describe( 'ClassicEditor build', () => {
 	describeMemoryUsage( () => {
 		testMemoryUsage(
 			'should not grow on multiple create/destroy',
-			() => ClassicEditor.create( document.querySelector( '#mem-editor' ) ) );
+			() => ClassicEditor.create( document.querySelector( '#mem-editor' ), { licenseKey: 'GPL' } ) );
 	} );
 } );

+ 5 - 2
tests/manual/ckeditor-amd-version.html

@@ -33,7 +33,9 @@
 <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.js"></script>
 <script>
 	require( [ '../../build/ckeditor.js' ], ( ClassicEditor ) => {
-		ClassicEditor.create( document.getElementById( 'editor' ) )
+		ClassicEditor.create( document.getElementById( 'editor' ), {
+			licenseKey: 'GPL'
+		} )
 			.then( editor => {
 				window.editor = editor;
 			} )
@@ -45,7 +47,8 @@
 	require( [ '../../build/ckeditor.js', '../../build/translations/de.js' ], ( ClassicEditor ) => {
 		ClassicEditor
 			.create( document.getElementById( 'editor-de' ), {
-				language: 'de'
+				language: 'de',
+				licenseKey: 'GPL'
 			} )
 			.then( editor => {
 				window.editor = editor;

+ 3 - 1
tests/manual/ckeditor-cjs-version.js

@@ -8,7 +8,9 @@
 
 const ClassicEditor = require( '../../build/ckeditor' );
 
-ClassicEditor.create( document.querySelector( '#editor' ) )
+ClassicEditor.create( document.querySelector( '#editor' ), {
+	licenseKey: 'GPL'
+} )
 	.then( editor => {
 		window.editor = editor;
 	} )

+ 5 - 2
tests/manual/ckeditor-global-version.html

@@ -33,7 +33,9 @@
 <script src="../../build/ckeditor.js"></script>
 <script src="../../build/translations/de.js"></script>
 <script>
-	ClassicEditor.create( document.querySelector( '#editor' ) )
+	ClassicEditor.create( document.querySelector( '#editor' ), {
+		licenseKey: 'GPL'
+	} )
 		.then( editor => {
 			window.editor = editor;
 		} )
@@ -43,7 +45,8 @@
 
 	ClassicEditor
 		.create( document.querySelector( '#editor-de' ), {
-			language: 'de'
+			language: 'de',
+			licenseKey: 'GPL'
 		} )
 		.then( editor => {
 			window.editor = editor;

+ 3 - 1
tests/manual/ckeditor.js

@@ -7,7 +7,9 @@
 
 import ClassicEditor from '../../build/ckeditor';
 
-ClassicEditor.create( document.querySelector( '#editor' ) )
+ClassicEditor.create( document.querySelector( '#editor' ), {
+	licenseKey: 'GPL'
+} )
 	.then( editor => {
 		window.editor = editor;
 	} )

+ 6 - 3
webpack.config.js

@@ -4,10 +4,12 @@
 /* eslint-env node */
 
 const path = require('path');
-const { CKEditorTranslationsPlugin } = require('@ckeditor/ckeditor5-dev-translations');
-const { styles } = require('@ckeditor/ckeditor5-dev-utils');
 
-module.exports = {
+module.exports = async () => {
+	const { CKEditorTranslationsPlugin } = await import('@ckeditor/ckeditor5-dev-translations');
+	const { styles } = await import('@ckeditor/ckeditor5-dev-utils');
+	
+	return {
 	devtool: 'source-map',
 	performance: { hints: false },
 	entry: path.resolve(__dirname, 'src', 'ckeditor.js'),
@@ -63,4 +65,5 @@ module.exports = {
 			}
 		]
 	}
+	};
 };

文件差异内容过多而无法显示
+ 2776 - 1346
yarn.lock