Przeglądaj źródła

v46 release update

Andrey Titovskiy 3 miesięcy temu
rodzic
commit
938473f993
79 zmienionych plików z 1496 dodań i 1858 usunięć
  1. 0 0
      build/ckeditor.js
  2. 0 0
      build/ckeditor.js.map
  3. 0 0
      build/translations/af.js
  4. 0 0
      build/translations/ar.js
  5. 0 0
      build/translations/ast.js
  6. 0 0
      build/translations/az.js
  7. 0 0
      build/translations/be.js
  8. 0 0
      build/translations/bg.js
  9. 0 0
      build/translations/bn.js
  10. 0 0
      build/translations/bs.js
  11. 0 0
      build/translations/ca.js
  12. 0 0
      build/translations/cs.js
  13. 0 0
      build/translations/da.js
  14. 0 0
      build/translations/de-ch.js
  15. 0 0
      build/translations/de.js
  16. 0 0
      build/translations/el.js
  17. 0 0
      build/translations/en-au.js
  18. 0 0
      build/translations/en-gb.js
  19. 0 0
      build/translations/en.js
  20. 0 0
      build/translations/eo.js
  21. 0 0
      build/translations/es-co.js
  22. 0 0
      build/translations/es.js
  23. 0 0
      build/translations/et.js
  24. 0 0
      build/translations/eu.js
  25. 0 0
      build/translations/fa.js
  26. 0 0
      build/translations/fi.js
  27. 0 0
      build/translations/fr.js
  28. 0 0
      build/translations/gl.js
  29. 0 0
      build/translations/gu.js
  30. 0 0
      build/translations/he.js
  31. 0 0
      build/translations/hi.js
  32. 0 0
      build/translations/hr.js
  33. 0 0
      build/translations/hu.js
  34. 0 0
      build/translations/hy.js
  35. 0 0
      build/translations/id.js
  36. 0 0
      build/translations/it.js
  37. 0 0
      build/translations/ja.js
  38. 0 0
      build/translations/jv.js
  39. 0 0
      build/translations/kk.js
  40. 0 0
      build/translations/km.js
  41. 0 0
      build/translations/kn.js
  42. 0 0
      build/translations/ko.js
  43. 0 0
      build/translations/ku.js
  44. 0 0
      build/translations/lt.js
  45. 0 0
      build/translations/lv.js
  46. 0 0
      build/translations/ms.js
  47. 0 0
      build/translations/nb.js
  48. 0 0
      build/translations/ne.js
  49. 0 0
      build/translations/nl.js
  50. 0 0
      build/translations/no.js
  51. 0 0
      build/translations/oc.js
  52. 0 0
      build/translations/pl.js
  53. 0 0
      build/translations/pt-br.js
  54. 0 0
      build/translations/pt.js
  55. 0 0
      build/translations/ro.js
  56. 0 0
      build/translations/si.js
  57. 0 0
      build/translations/sk.js
  58. 0 0
      build/translations/sl.js
  59. 0 0
      build/translations/sq.js
  60. 0 0
      build/translations/sr-latn.js
  61. 0 0
      build/translations/sr.js
  62. 0 0
      build/translations/sv.js
  63. 0 0
      build/translations/th.js
  64. 0 0
      build/translations/ti.js
  65. 0 0
      build/translations/tk.js
  66. 0 0
      build/translations/tr.js
  67. 0 0
      build/translations/tt.js
  68. 0 0
      build/translations/ug.js
  69. 0 0
      build/translations/uk.js
  70. 0 0
      build/translations/ur.js
  71. 0 0
      build/translations/uz.js
  72. 0 0
      build/translations/vi.js
  73. 0 0
      build/translations/zh-cn.js
  74. 0 0
      build/translations/zh.js
  75. 899 824
      package-lock.json
  76. 33 33
      package.json
  77. 1 1
      sample/index.html
  78. 33 9
      src/ckeditor.js
  79. 530 991
      yarn.lock

Plik diff jest za duży
+ 0 - 0
build/ckeditor.js


Plik diff jest za duży
+ 0 - 0
build/ckeditor.js.map


Plik diff jest za duży
+ 0 - 0
build/translations/af.js


Plik diff jest za duży
+ 0 - 0
build/translations/ar.js


Plik diff jest za duży
+ 0 - 0
build/translations/ast.js


Plik diff jest za duży
+ 0 - 0
build/translations/az.js


Plik diff jest za duży
+ 0 - 0
build/translations/be.js


Plik diff jest za duży
+ 0 - 0
build/translations/bg.js


Plik diff jest za duży
+ 0 - 0
build/translations/bn.js


Plik diff jest za duży
+ 0 - 0
build/translations/bs.js


Plik diff jest za duży
+ 0 - 0
build/translations/ca.js


Plik diff jest za duży
+ 0 - 0
build/translations/cs.js


Plik diff jest za duży
+ 0 - 0
build/translations/da.js


Plik diff jest za duży
+ 0 - 0
build/translations/de-ch.js


Plik diff jest za duży
+ 0 - 0
build/translations/de.js


Plik diff jest za duży
+ 0 - 0
build/translations/el.js


Plik diff jest za duży
+ 0 - 0
build/translations/en-au.js


Plik diff jest za duży
+ 0 - 0
build/translations/en-gb.js


Plik diff jest za duży
+ 0 - 0
build/translations/en.js


Plik diff jest za duży
+ 0 - 0
build/translations/eo.js


Plik diff jest za duży
+ 0 - 0
build/translations/es-co.js


Plik diff jest za duży
+ 0 - 0
build/translations/es.js


Plik diff jest za duży
+ 0 - 0
build/translations/et.js


Plik diff jest za duży
+ 0 - 0
build/translations/eu.js


Plik diff jest za duży
+ 0 - 0
build/translations/fa.js


Plik diff jest za duży
+ 0 - 0
build/translations/fi.js


Plik diff jest za duży
+ 0 - 0
build/translations/fr.js


Plik diff jest za duży
+ 0 - 0
build/translations/gl.js


Plik diff jest za duży
+ 0 - 0
build/translations/gu.js


Plik diff jest za duży
+ 0 - 0
build/translations/he.js


Plik diff jest za duży
+ 0 - 0
build/translations/hi.js


Plik diff jest za duży
+ 0 - 0
build/translations/hr.js


Plik diff jest za duży
+ 0 - 0
build/translations/hu.js


Plik diff jest za duży
+ 0 - 0
build/translations/hy.js


Plik diff jest za duży
+ 0 - 0
build/translations/id.js


Plik diff jest za duży
+ 0 - 0
build/translations/it.js


Plik diff jest za duży
+ 0 - 0
build/translations/ja.js


Plik diff jest za duży
+ 0 - 0
build/translations/jv.js


Plik diff jest za duży
+ 0 - 0
build/translations/kk.js


Plik diff jest za duży
+ 0 - 0
build/translations/km.js


Plik diff jest za duży
+ 0 - 0
build/translations/kn.js


Plik diff jest za duży
+ 0 - 0
build/translations/ko.js


Plik diff jest za duży
+ 0 - 0
build/translations/ku.js


Plik diff jest za duży
+ 0 - 0
build/translations/lt.js


Plik diff jest za duży
+ 0 - 0
build/translations/lv.js


Plik diff jest za duży
+ 0 - 0
build/translations/ms.js


Plik diff jest za duży
+ 0 - 0
build/translations/nb.js


Plik diff jest za duży
+ 0 - 0
build/translations/ne.js


Plik diff jest za duży
+ 0 - 0
build/translations/nl.js


Plik diff jest za duży
+ 0 - 0
build/translations/no.js


Plik diff jest za duży
+ 0 - 0
build/translations/oc.js


Plik diff jest za duży
+ 0 - 0
build/translations/pl.js


Plik diff jest za duży
+ 0 - 0
build/translations/pt-br.js


Plik diff jest za duży
+ 0 - 0
build/translations/pt.js


Plik diff jest za duży
+ 0 - 0
build/translations/ro.js


Plik diff jest za duży
+ 0 - 0
build/translations/si.js


Plik diff jest za duży
+ 0 - 0
build/translations/sk.js


Plik diff jest za duży
+ 0 - 0
build/translations/sl.js


Plik diff jest za duży
+ 0 - 0
build/translations/sq.js


Plik diff jest za duży
+ 0 - 0
build/translations/sr-latn.js


Plik diff jest za duży
+ 0 - 0
build/translations/sr.js


Plik diff jest za duży
+ 0 - 0
build/translations/sv.js


Plik diff jest za duży
+ 0 - 0
build/translations/th.js


Plik diff jest za duży
+ 0 - 0
build/translations/ti.js


Plik diff jest za duży
+ 0 - 0
build/translations/tk.js


Plik diff jest za duży
+ 0 - 0
build/translations/tr.js


Plik diff jest za duży
+ 0 - 0
build/translations/tt.js


Plik diff jest za duży
+ 0 - 0
build/translations/ug.js


Plik diff jest za duży
+ 0 - 0
build/translations/uk.js


Plik diff jest za duży
+ 0 - 0
build/translations/ur.js


Plik diff jest za duży
+ 0 - 0
build/translations/uz.js


Plik diff jest za duży
+ 0 - 0
build/translations/vi.js


Plik diff jest za duży
+ 0 - 0
build/translations/zh-cn.js


Plik diff jest za duży
+ 0 - 0
build/translations/zh.js


Plik diff jest za duży
+ 899 - 824
package-lock.json


+ 33 - 33
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ckeditor/ckeditor5-build-classic",
-  "version": "46.0.0",
+  "version": "47.0.0",
   "description": "The classic editor build of CKEditor 5 – the best browser-based rich text editor.",
   "keywords": [
     "ckeditor5-build",
@@ -25,37 +25,37 @@
     "build"
   ],
   "devDependencies": {
-    "@ckeditor/ckeditor5-adapter-ckfinder": "^46.0.0",
-    "@ckeditor/ckeditor5-alignment": "^46.0.0",
-    "@ckeditor/ckeditor5-autoformat": "^46.0.0",
-    "@ckeditor/ckeditor5-basic-styles": "^46.0.0",
-    "@ckeditor/ckeditor5-block-quote": "^46.0.0",
-    "@ckeditor/ckeditor5-ckfinder": "^46.0.0",
-    "@ckeditor/ckeditor5-clipboard": "^46.0.0",
-    "@ckeditor/ckeditor5-code-block": "46.0.0",
-    "@ckeditor/ckeditor5-dev-utils": "^46.0.0",
-    "@ckeditor/ckeditor5-dev-translations": "^46.0.0",
-    "@ckeditor/ckeditor5-easy-image": "^46.0.0",
-    "@ckeditor/ckeditor5-editor-balloon": "^46.0.0",
-    "@ckeditor/ckeditor5-editor-classic": "^46.0.0",
-    "@ckeditor/ckeditor5-editor-decoupled": "^46.0.0",
-    "@ckeditor/ckeditor5-editor-inline": "^46.0.0",
-    "@ckeditor/ckeditor5-essentials": "^46.0.0",
-    "@ckeditor/ckeditor5-font": "^46.0.0",
-    "@ckeditor/ckeditor5-heading": "^46.0.0",
-    "@ckeditor/ckeditor5-html-embed": "^46.0.0",
-    "@ckeditor/ckeditor5-image": "^46.0.0",
-    "@ckeditor/ckeditor5-indent": "^46.0.0",
-    "@ckeditor/ckeditor5-link": "^46.0.0",
-    "@ckeditor/ckeditor5-list": "^46.0.0",
-    "@ckeditor/ckeditor5-media-embed": "^46.0.0",
-    "@ckeditor/ckeditor5-paragraph": "^46.0.0",
-    "@ckeditor/ckeditor5-paste-from-office": "^46.0.0",
-    "@ckeditor/ckeditor5-remove-format": "^46.0.0",
-    "@ckeditor/ckeditor5-table": "^46.0.0",
-    "@ckeditor/ckeditor5-theme-lark": "^46.0.0",
-    "@ckeditor/ckeditor5-typing": "^46.0.0",
-    "@ckeditor/ckeditor5-horizontal-line": "^46.0.0",
+    "@ckeditor/ckeditor5-adapter-ckfinder": "^47.0.0",
+    "@ckeditor/ckeditor5-alignment": "^47.0.0",
+    "@ckeditor/ckeditor5-autoformat": "^47.0.0",
+    "@ckeditor/ckeditor5-basic-styles": "^47.0.0",
+    "@ckeditor/ckeditor5-block-quote": "^47.0.0",
+    "@ckeditor/ckeditor5-ckfinder": "^47.0.0",
+    "@ckeditor/ckeditor5-clipboard": "^47.0.0",
+    "@ckeditor/ckeditor5-code-block": "^47.0.0",
+    "@ckeditor/ckeditor5-dev-utils": "^47.0.0",
+    "@ckeditor/ckeditor5-dev-translations": "^47.0.0",
+    "@ckeditor/ckeditor5-easy-image": "^47.0.0",
+    "@ckeditor/ckeditor5-editor-balloon": "^47.0.0",
+    "@ckeditor/ckeditor5-editor-classic": "^47.0.0",
+    "@ckeditor/ckeditor5-editor-decoupled": "^47.0.0",
+    "@ckeditor/ckeditor5-editor-inline": "^47.0.0",
+    "@ckeditor/ckeditor5-essentials": "^47.0.0",
+    "@ckeditor/ckeditor5-font": "^47.0.0",
+    "@ckeditor/ckeditor5-heading": "^47.0.0",
+    "@ckeditor/ckeditor5-html-embed": "^47.0.0",
+    "@ckeditor/ckeditor5-image": "^47.0.0",
+    "@ckeditor/ckeditor5-indent": "^47.0.0",
+    "@ckeditor/ckeditor5-link": "^47.0.0",
+    "@ckeditor/ckeditor5-list": "^47.0.0",
+    "@ckeditor/ckeditor5-media-embed": "^47.0.0",
+    "@ckeditor/ckeditor5-paragraph": "^47.0.0",
+    "@ckeditor/ckeditor5-paste-from-office": "^47.0.0",
+    "@ckeditor/ckeditor5-remove-format": "^47.0.0",
+    "@ckeditor/ckeditor5-table": "^47.0.0",
+    "@ckeditor/ckeditor5-theme-lark": "^47.0.0",
+    "@ckeditor/ckeditor5-typing": "^47.0.0",
+    "@ckeditor/ckeditor5-horizontal-line": "^47.0.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": "^46.0.0"
+    "@ckeditor/ckeditor5-special-characters": "^47.0.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;

+ 33 - 9
src/ckeditor.js

@@ -3,12 +3,10 @@ import { BalloonEditor as BalloonEditorBase } from '@ckeditor/ckeditor5-editor-b
 import { InlineEditor as InlineEditorBase } from '@ckeditor/ckeditor5-editor-inline/src/inlineeditor.js';
 
 import { Essentials } from '@ckeditor/ckeditor5-essentials/src/essentials.js';
-import { CKFinderUploadAdapter as UploadAdapter } from '@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.js';
 import { Autoformat } from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
 import { Bold } from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
 import { Italic } from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
 import { BlockQuote } from '@ckeditor/ckeditor5-block-quote/src/blockquote.js';
-import { CKFinder } from '@ckeditor/ckeditor5-ckfinder/src/ckfinder.js';
 import { Heading } from '@ckeditor/ckeditor5-heading/src/heading.js';
 import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed/src/htmlembed.js';
 import { Image } from '@ckeditor/ckeditor5-image/src/image.js';
@@ -21,6 +19,7 @@ import { LinkImage } from '@ckeditor/ckeditor5-link/src/linkimage.js';
 import { Indent } from '@ckeditor/ckeditor5-indent/src/indent.js';
 import { Link } from '@ckeditor/ckeditor5-link/src/link.js';
 import { List } from '@ckeditor/ckeditor5-list/src/list.js';
+import { ListProperties } from '@ckeditor/ckeditor5-list/src/listproperties.js';
 import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed/src/mediaembed.js';
 import { Paragraph } from '@ckeditor/ckeditor5-paragraph/src/paragraph.js';
 import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js';
@@ -42,7 +41,8 @@ import { SpecialCharacters } from '@ckeditor/ckeditor5-special-characters/src/sp
 import { SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters/src/specialcharactersessentials.js';
 
 import { TableCellProperties, TableColumnResize, TableProperties } from '@ckeditor/ckeditor5-table';
-import { FontSize } from '@ckeditor/ckeditor5-font';
+import { FontSize, FontFamily } from '@ckeditor/ckeditor5-font';
+import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline.js';
 
 class ClassicEditor extends ClassicEditorBase {}
 class BalloonEditor extends BalloonEditorBase {}
@@ -76,7 +76,7 @@ function SpecialCharactersEmoji( editor ) {
 // Plugins to include in the build.
 const builtinPlugins = [
 	Essentials,
-	UploadAdapter,
+	// UploadAdapter, // Коммерческий плагин
 	Autoformat,
 	Bold,
 	Clipboard,
@@ -86,7 +86,7 @@ const builtinPlugins = [
 	Subscript,
 	Superscript,
 	BlockQuote,
-	CKFinder,
+	// CKFinder, // Коммерческий плагин
 	Heading,
 	HtmlEmbed,
 	Image,
@@ -99,6 +99,7 @@ const builtinPlugins = [
 	Indent,
 	Link,
 	List,
+	ListProperties,
 	MediaEmbed,
 	Paragraph,
 	PasteFromOffice,
@@ -110,13 +111,15 @@ const builtinPlugins = [
 	TableCellProperties,
 	TextTransformation,
 	FontSize,
+	FontFamily,
 	FontColor,
 	FontBackgroundColor,
 	Alignment,
 	SpecialCharacters,
 	CodeBlock,
 	SpecialCharactersEssentials,
-	SpecialCharactersEmoji
+	SpecialCharactersEmoji,
+	HorizontalLine
 ];
 
 BalloonEditor.builtinPlugins = builtinPlugins;
@@ -135,19 +138,27 @@ const defaultConfig = {
 			'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript',
 			'link', 'bulletedList', 'numberedList',
 			'|',
-			'fontSize', 'fontColor', 'fontBackgroundColor',
+			'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor',
 			'|',
 			'alignment',
 			'|',
 			'indent', 'outdent',
 			'|',
-			'imageUpload', 'blockQuote', 'insertTable',
+			'blockQuote', 'insertTable',
 			'mediaEmbed',
 			'codeBlock',
+			'horizontalLine',
 			'undo', 'redo',
 			'specialCharacters'
 		]
 	},
+	list: {
+		properties: {
+			styles: true,
+			startIndex: true,
+			reversed: true
+		}
+	},
 	fontSize: {
 		options: [
 			9,
@@ -159,6 +170,19 @@ const defaultConfig = {
 			21
 		]
 	},
+	fontFamily: {
+		options: [
+			'default',
+			'Arial, Helvetica, sans-serif',
+			'Courier New, Courier, monospace',
+			'Georgia, serif',
+			'Lucida Sans Unicode, Lucida Grande, sans-serif',
+			'Tahoma, Geneva, sans-serif',
+			'Times New Roman, Times, serif',
+			'Trebuchet MS, Helvetica, sans-serif',
+			'Verdana, Geneva, sans-serif'
+		]
+	},
 	image: {
 		styles: [
 			'alignLeft', 'alignCenter', 'alignRight'
@@ -193,7 +217,7 @@ const defaultConfig = {
 			'imageResize',
 			'|',
 			'imageTextAlternative',
-		]
+		],
 	},
 	table: {
 		contentToolbar: [

Plik diff jest za duży
+ 530 - 991
yarn.lock


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików