Jelajahi Sumber

Merge branch 'master' into t/ckeditor5/1655

Kamil Piechaczek 6 tahun lalu
induk
melakukan
d73f9f2f35
100 mengubah file dengan 223 tambahan dan 129 penghapusan
  1. 1 1
      packages/ckeditor5-utils/.eslintrc.js
  2. 1 5
      packages/ckeditor5-utils/.travis.yml
  3. 8 0
      packages/ckeditor5-utils/CHANGELOG.md
  4. 4 4
      packages/ckeditor5-utils/package.json
  5. 1 1
      packages/ckeditor5-utils/src/ckeditorerror.js
  6. 1 1
      packages/ckeditor5-utils/src/collection.js
  7. 1 1
      packages/ckeditor5-utils/src/comparearrays.js
  8. 1 1
      packages/ckeditor5-utils/src/config.js
  9. 1 1
      packages/ckeditor5-utils/src/count.js
  10. 1 1
      packages/ckeditor5-utils/src/diff.js
  11. 1 1
      packages/ckeditor5-utils/src/difftochanges.js
  12. 1 1
      packages/ckeditor5-utils/src/dom/createelement.js
  13. 1 1
      packages/ckeditor5-utils/src/dom/emittermixin.js
  14. 1 1
      packages/ckeditor5-utils/src/dom/getancestors.js
  15. 1 1
      packages/ckeditor5-utils/src/dom/getborderwidths.js
  16. 1 1
      packages/ckeditor5-utils/src/dom/getcommonancestor.js
  17. 1 1
      packages/ckeditor5-utils/src/dom/getdatafromelement.js
  18. 1 1
      packages/ckeditor5-utils/src/dom/getpositionedancestor.js
  19. 1 1
      packages/ckeditor5-utils/src/dom/global.js
  20. 1 1
      packages/ckeditor5-utils/src/dom/indexof.js
  21. 1 1
      packages/ckeditor5-utils/src/dom/insertat.js
  22. 1 1
      packages/ckeditor5-utils/src/dom/isnode.js
  23. 1 1
      packages/ckeditor5-utils/src/dom/isrange.js
  24. 1 1
      packages/ckeditor5-utils/src/dom/istext.js
  25. 1 1
      packages/ckeditor5-utils/src/dom/iswindow.js
  26. 1 1
      packages/ckeditor5-utils/src/dom/position.js
  27. 1 1
      packages/ckeditor5-utils/src/dom/rect.js
  28. 1 1
      packages/ckeditor5-utils/src/dom/remove.js
  29. 1 1
      packages/ckeditor5-utils/src/dom/scroll.js
  30. 1 1
      packages/ckeditor5-utils/src/dom/setdatainelement.js
  31. 1 1
      packages/ckeditor5-utils/src/dom/tounit.js
  32. 1 1
      packages/ckeditor5-utils/src/elementreplacer.js
  33. 4 1
      packages/ckeditor5-utils/src/emittermixin.js
  34. 1 1
      packages/ckeditor5-utils/src/env.js
  35. 1 1
      packages/ckeditor5-utils/src/eventinfo.js
  36. 1 1
      packages/ckeditor5-utils/src/fastdiff.js
  37. 1 1
      packages/ckeditor5-utils/src/first.js
  38. 1 1
      packages/ckeditor5-utils/src/focustracker.js
  39. 1 1
      packages/ckeditor5-utils/src/isiterable.js
  40. 1 1
      packages/ckeditor5-utils/src/keyboard.js
  41. 1 1
      packages/ckeditor5-utils/src/keystrokehandler.js
  42. 1 1
      packages/ckeditor5-utils/src/locale.js
  43. 1 1
      packages/ckeditor5-utils/src/log.js
  44. 1 1
      packages/ckeditor5-utils/src/mapsequal.js
  45. 1 1
      packages/ckeditor5-utils/src/mix.js
  46. 1 1
      packages/ckeditor5-utils/src/nth.js
  47. 1 1
      packages/ckeditor5-utils/src/objecttomap.js
  48. 1 1
      packages/ckeditor5-utils/src/observablemixin.js
  49. 1 1
      packages/ckeditor5-utils/src/priorities.js
  50. 1 1
      packages/ckeditor5-utils/src/spy.js
  51. 1 1
      packages/ckeditor5-utils/src/tomap.js
  52. 1 1
      packages/ckeditor5-utils/src/translation-service.js
  53. 1 1
      packages/ckeditor5-utils/src/uid.js
  54. 1 1
      packages/ckeditor5-utils/src/unicode.js
  55. 111 24
      packages/ckeditor5-utils/src/version.js
  56. 1 1
      packages/ckeditor5-utils/tests/_utils-tests/longtext.js
  57. 1 1
      packages/ckeditor5-utils/tests/_utils-tests/normalizehtml.js
  58. 1 1
      packages/ckeditor5-utils/tests/_utils-tests/utils.js
  59. 1 1
      packages/ckeditor5-utils/tests/_utils/locale-mock.js
  60. 1 1
      packages/ckeditor5-utils/tests/_utils/longtext.js
  61. 1 1
      packages/ckeditor5-utils/tests/_utils/normalizehtml.js
  62. 1 1
      packages/ckeditor5-utils/tests/_utils/utils.js
  63. 1 1
      packages/ckeditor5-utils/tests/ckeditorerror.js
  64. 1 1
      packages/ckeditor5-utils/tests/collection.js
  65. 1 1
      packages/ckeditor5-utils/tests/comparearrays.js
  66. 1 1
      packages/ckeditor5-utils/tests/config.js
  67. 1 1
      packages/ckeditor5-utils/tests/count.js
  68. 1 1
      packages/ckeditor5-utils/tests/diff.js
  69. 1 1
      packages/ckeditor5-utils/tests/difftochanges.js
  70. 1 1
      packages/ckeditor5-utils/tests/dom/createelement.js
  71. 1 1
      packages/ckeditor5-utils/tests/dom/emittermixin.js
  72. 1 1
      packages/ckeditor5-utils/tests/dom/getancestors.js
  73. 1 1
      packages/ckeditor5-utils/tests/dom/getborderwidths.js
  74. 1 1
      packages/ckeditor5-utils/tests/dom/getcommonancestor.js
  75. 1 1
      packages/ckeditor5-utils/tests/dom/getdatafromelement.js
  76. 1 1
      packages/ckeditor5-utils/tests/dom/getpositionedancestor.js
  77. 1 1
      packages/ckeditor5-utils/tests/dom/global.js
  78. 1 1
      packages/ckeditor5-utils/tests/dom/indexof.js
  79. 1 1
      packages/ckeditor5-utils/tests/dom/insertat.js
  80. 1 1
      packages/ckeditor5-utils/tests/dom/isdomnode.js
  81. 1 1
      packages/ckeditor5-utils/tests/dom/isrange.js
  82. 1 1
      packages/ckeditor5-utils/tests/dom/istext.js
  83. 1 1
      packages/ckeditor5-utils/tests/dom/iswindow.js
  84. 1 1
      packages/ckeditor5-utils/tests/dom/position.js
  85. 1 1
      packages/ckeditor5-utils/tests/dom/rect.js
  86. 1 1
      packages/ckeditor5-utils/tests/dom/remove.js
  87. 1 1
      packages/ckeditor5-utils/tests/dom/scroll.js
  88. 1 1
      packages/ckeditor5-utils/tests/dom/setdatainelement.js
  89. 1 1
      packages/ckeditor5-utils/tests/dom/tounit.js
  90. 1 1
      packages/ckeditor5-utils/tests/elementreplacer.js
  91. 1 1
      packages/ckeditor5-utils/tests/emittermixin.js
  92. 1 1
      packages/ckeditor5-utils/tests/env.js
  93. 1 1
      packages/ckeditor5-utils/tests/eventinfo.js
  94. 1 1
      packages/ckeditor5-utils/tests/fastdiff.js
  95. 1 1
      packages/ckeditor5-utils/tests/first.js
  96. 1 1
      packages/ckeditor5-utils/tests/focustracker.js
  97. 1 1
      packages/ckeditor5-utils/tests/isIterable.js
  98. 1 1
      packages/ckeditor5-utils/tests/keyboard.js
  99. 1 1
      packages/ckeditor5-utils/tests/keystrokehandler.js
  100. 1 1
      packages/ckeditor5-utils/tests/locale.js

+ 1 - 1
packages/ckeditor5-utils/.eslintrc.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* eslint-env node */

+ 1 - 5
packages/ckeditor5-utils/.travis.yml

@@ -1,12 +1,8 @@
 sudo: required
 dist: trusty
 addons:
+  chrome: stable
   firefox: latest
-  apt:
-    sources:
-    - google-chrome
-    packages:
-    - google-chrome-stable
 language: node_js
 node_js:
 - '8'

+ 8 - 0
packages/ckeditor5-utils/CHANGELOG.md

@@ -1,6 +1,14 @@
 Changelog
 =========
 
+## [12.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.0.0...v12.1.0) (2019-04-10)
+
+### Features
+
+* Added `isSafari` property and `isSafari()` helper to the `env` module. See: [ckeditor/ckeditor5#1463](https://github.com/ckeditor/ckeditor5/issues/1463). ([f1ba6ae](https://github.com/ckeditor/ckeditor5-utils/commit/f1ba6ae))
+* Made `FocusTracker#focusedElement` observable to bring support for multi-root editors (see [ckeditor/ckeditor5#1599](https://github.com/ckeditor/ckeditor5/issues/1599)). ([952d440](https://github.com/ckeditor/ckeditor5-utils/commit/952d440))
+
+
 ## [12.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.1.0...v12.0.0) (2019-02-28)
 
 ### Features

+ 4 - 4
packages/ckeditor5-utils/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ckeditor/ckeditor5-utils",
-  "version": "12.0.0",
+  "version": "12.1.0",
   "description": "Miscellaneous utils used by CKEditor 5.",
   "keywords": [
     "ckeditor",
@@ -9,12 +9,12 @@
     "ckeditor5-lib"
   ],
   "dependencies": {
-    "ckeditor5": "^12.0.0",
+    "ckeditor5": "^12.1.0",
     "lodash-es": "^4.17.10"
   },
   "devDependencies": {
-    "@ckeditor/ckeditor5-core": "^12.0.0",
-    "@ckeditor/ckeditor5-engine": "^13.0.0",
+    "@ckeditor/ckeditor5-core": "^12.1.0",
+    "@ckeditor/ckeditor5-engine": "^13.1.0",
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^1.0.11",
     "husky": "^1.3.1",

+ 1 - 1
packages/ckeditor5-utils/src/ckeditorerror.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/collection.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/comparearrays.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/config.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/count.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/diff.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/difftochanges.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/createelement.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/emittermixin.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/getancestors.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals Node */

+ 1 - 1
packages/ckeditor5-utils/src/dom/getborderwidths.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/getcommonancestor.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/getdatafromelement.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals HTMLTextAreaElement */

+ 1 - 1
packages/ckeditor5-utils/src/dom/getpositionedancestor.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/global.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals window, document */

+ 1 - 1
packages/ckeditor5-utils/src/dom/indexof.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/insertat.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/isnode.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/isrange.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/istext.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/iswindow.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/position.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/rect.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/remove.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/scroll.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/setdatainelement.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/dom/tounit.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/elementreplacer.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 4 - 1
packages/ckeditor5-utils/src/emittermixin.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**
@@ -11,6 +11,9 @@ import EventInfo from './eventinfo';
 import uid from './uid';
 import priorities from './priorities';
 
+// To check if component is loaded more than once.
+import './version';
+
 const _listeningTo = Symbol( 'listeningTo' );
 const _emitterId = Symbol( 'emitterId' );
 

+ 1 - 1
packages/ckeditor5-utils/src/env.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals navigator:false */

+ 1 - 1
packages/ckeditor5-utils/src/eventinfo.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/fastdiff.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/first.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/focustracker.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global setTimeout, clearTimeout */

+ 1 - 1
packages/ckeditor5-utils/src/isiterable.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/keyboard.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/keystrokehandler.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/locale.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/log.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global console */

+ 1 - 1
packages/ckeditor5-utils/src/mapsequal.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/mix.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/nth.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/objecttomap.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/observablemixin.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/priorities.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/spy.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/tomap.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/translation-service.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals window */

+ 1 - 1
packages/ckeditor5-utils/src/uid.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/src/unicode.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 111 - 24
packages/ckeditor5-utils/src/version.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**
@@ -16,42 +16,129 @@ const windowOrGlobal = typeof window === 'object' ? window : global;
 
 if ( windowOrGlobal.CKEDITOR_VERSION ) {
 	/**
-	 * This error is thrown when the `CKEDITOR_VERSION` global is being set more than once. This happens when in
-	 * two scenarios described above.
+	 * This error is thrown when due to a mistake in how CKEditor 5 was installed or initialized, some
+	 * of its modules were duplicated (evaluated and executed twice). Module duplication leads to inevitable runtime
+	 * errors.
 	 *
-	 * # Some packages were duplicated
+	 * There are many situations in which some modules can be loaded twice. In the worst case scenario,
+	 * you may need to check your project for each of those issues and fix them all.
+	 *
+	 * # Trying to add a plugin to an existing build
+	 *
+	 * If you import an existing CKEditor 5 build and a plugin like this:
+	 *
+	 *		import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
+	 *		import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight';
+	 *
+	 * Then your project loads some CKEditor 5 packages twice. How does it happen?
+	 *
+	 * The build package contains a file which is already compiled with webpack,
+	 * meaning that it contains all the necessary code from e.g. `@ckeditor/ckeditor5-engine` and `@ckeditor/ckeditor5-utils`.
+	 *
+	 * However, the `Highlight` plugin imports some of the modules from those packages too. If you ask webpack to
+	 * build such a project, you will end up with those modules being included (and run) twice – first, because they are
+	 * included inside the build package, and second because they are required by the `Highlight` plugin.
+	 *
+	 * Therefore, **you must never add plugins to an existing build** unless your plugin has no dependencies.
+	 *
+	 * Adding plugins to a build is done by taking the source version of this build (so, before it was built with webpack)
+	 * and adding plugins there. In this situation, webpack will know that it only needs to load each plugins once.
+	 *
+	 * Read more in the {@glink builds/guides/integration/installing-plugins "Installing plugins"} guide.
+	 *
+	 * # Confused an editor build with an editor implementation
+	 *
+	 * This scenario is very similar to the previous one, but has a different origin.
+	 *
+	 * Let's assume, that you wanted to use CKEditor 5 from source, as explained in the
+	 * {@glink builds/guides/integration/advanced-setup#scenario-2-building-from-source "Building from source"} section
+	 * or in the {@glink framework/guides/quick-start "Quick start"} guide of the CKEditor 5 Framework.
+	 *
+	 * The correct way to do so is to import an editor and plugins and run them together like this:
+	 *
+	 *		import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
+	 *		import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
+	 *		import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+	 *		import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+	 *		import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
+	 *
+	 *		ClassicEditor
+	 *			.create( document.querySelector( '#editor' ), {
+	 *				plugins: [ Essentials, Paragraph, Bold, Italic ],
+	 *				toolbar: [ 'bold', 'italic' ]
+	 *			} )
+	 *			.then( editor => {
+	 *				console.log( 'Editor was initialized', editor );
+	 *			} )
+	 *			.catch( error => {
+	 *				console.error( error.stack );
+	 *			} );
+	 *
+	 * However, you might have mistakenly import a build instead of a source `ClassicEditor`. In which case
+	 * your imports will look like this:
+	 *
+	 *		import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
+	 *		import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
+	 *		import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+	 *		import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+	 *		import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
+	 *
+	 * This creates the same situation as in the previous section because you use a build together with source plugins.
+	 *
+	 * Remember: `@ckeditor/ckeditor5-build-*` packages contain editor builds and `@ckeditor/ckeditor5-editor-*` source editors.
+	 *
+	 * # Loading two+ builds on one page
+	 *
+	 * If you use CKEditor 5 builds, you might have loaded two (or more) `ckeditor.js` files in one web page
+	 * – check your web page for duplicated `<script>` elements or make sure your page builder/bundler includes CKEditor only once.
+	 *
+	 * If you want to use two different types of editors at once, see the
+	 * {@glink builds/guides/integration/advanced-setup#scenario-3-using-two-different-editors "Using two different editors"}
+	 * section.
+	 *
+	 * # Using outdated packages
+	 *
+	 * Building CKEditor 5 from source require using multiple npm packages. Those packages have their dependencies
+	 * to other packages. If you use the latest version of let's say `@ckeditor/ckeditor5-editor-classic` with
+	 * and outdated version of `@ckeditor/ckeditor5-image`, npm or yarn will need to install two different versions of
+	 * `@ckeditor/ckeditor5-core` because `@ckeditor/ckeditor5-editor-classic` and `@ckeditor/ckeditor5-image` may require
+	 * different versions of the core package.
+	 *
+	 * The solution to this issue is to update all packages to their latest version. We recommend
+	 * using tools like [`node-check-updates`](https://www.npmjs.com/package/npm-check-updates) which simplify this process.
+	 *
+	 * # Conflicting version of dependencies
+	 *
+	 * This is a special case of the previous scenario. If you use CKEditor 5 with some 3rd party plugins,
+	 * it may happen that even if you use the latest versions of the official packages and the latest version of
+	 * those 3rd party packages, there will be a conflict between some of their dependencies.
+	 *
+	 * Such a problem can be resolved by either downgrading CKEditor 5 packages (which we do not recommend) or
+	 * asking the author of the 3rd party package to upgrade its depdendencies (or forking his project and doing this yourself).
+	 *
+	 * # Packages were duplicated in `node_modules`
+	 *
+	 * In some situations, especially when calling `npm install` multiple times, it may happen
+	 * than npm will not correctly "deduplicate" packages.
 	 *
-	 * CKEditor 5 was built from source packages which were duplicated during installation via npm.
 	 * Normally, npm deduplicates all packages so e.g. `@ckeditor/ckeditor5-core` is installed only once in `node_modules/`.
-	 * However, subsequent `npm install` calls or conflicting version dependencies may cause npm to install some packages
-	 * more than once. Furthermore, [npm in version 5+](https://github.com/npm/npm/issues/16991)
-	 * is also known for randomly failing to deduplicate packages.
+	 * However, it was known to fail to do so from time to time.
 	 *
 	 * We recommend checking if any of the below steps helps:
 	 *
 	 * * `rm -rf node_modules && npm install` to make sure you have a clean `node_modules/` – this step
 	 * is known to help in majority of cases,
+	 * * if you use `yarn.lock` or `package-lock.json`, remove it before `npm install`,
 	 * * check whether all CKEditor 5 packages are up to date and reinstall them
-	 * if you changed anything (`rm -rf node_modules && npm install`),
-	 * * downgrade npm to version 4 if you use a newer version.
+	 * if you changed anything (`rm -rf node_modules && npm install`).
 	 *
 	 * If all packages are correct and compatible with each other the above steps are known to help. If not, you may
-	 * try to check with `npm ls` how many times `@ckeditor/ckeditor5-core` is installed. If more than once, verify
-	 * which package causes that.
-	 *
-	 * # Two+ builds are loaded
-	 *
-	 * If you use CKEditor 5 builds, you might have loaded two (or more) `ckeditor.js` files in one web page
-	 * – check your web page for duplicated `<script>` elements or make sure your page builder/bundler includes CKEditor only once.
+	 * try to check with `npm ls` how many times packages like `@ckeditor/ckeditor5-core`, `@ckeditor/ckeditor5-engine` and
+	 *`@ckeditor/ckeditor5-utils` are installed. If more than once, verify which package causes that.
 	 *
-	 * @error ckeditor-version-collision
-	 * @param {String} collidingVersion The version of the build which has already been (incorrectly) loaded.
-	 * @param {String} version The version of the build which is supposed to be loaded.
+	 * @error ckeditor-duplicated-modules
 	 */
-	log.error( 'ckeditor-version-collision: The global CKEDITOR_VERSION constant has already been set.', {
-		collidingVersion: windowOrGlobal.CKEDITOR_VERSION,
-		version
-	} );
+	log.error( 'ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.' );
 } else {
 	windowOrGlobal.CKEDITOR_VERSION = version;
 }

+ 1 - 1
packages/ckeditor5-utils/tests/_utils-tests/longtext.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import getLongText from '../../tests/_utils/longtext';

+ 1 - 1
packages/ckeditor5-utils/tests/_utils-tests/normalizehtml.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import normalizeHtml from '../../tests/_utils/normalizehtml';

+ 1 - 1
packages/ckeditor5-utils/tests/_utils-tests/utils.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

+ 1 - 1
packages/ckeditor5-utils/tests/_utils/locale-mock.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /**

+ 1 - 1
packages/ckeditor5-utils/tests/_utils/longtext.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import longtext from './longtext.txt';

+ 1 - 1
packages/ckeditor5-utils/tests/_utils/normalizehtml.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';

+ 1 - 1
packages/ckeditor5-utils/tests/_utils/utils.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global console:false */

+ 1 - 1
packages/ckeditor5-utils/tests/ckeditorerror.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import { default as CKEditorError, DOCUMENTATION_URL } from '../src/ckeditorerror';

+ 1 - 1
packages/ckeditor5-utils/tests/collection.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

+ 1 - 1
packages/ckeditor5-utils/tests/comparearrays.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import compareArrays from '../src/comparearrays';

+ 1 - 1
packages/ckeditor5-utils/tests/config.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document */

+ 1 - 1
packages/ckeditor5-utils/tests/count.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import count from '../src/count';

+ 1 - 1
packages/ckeditor5-utils/tests/diff.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import diff from '../src/diff';

+ 1 - 1
packages/ckeditor5-utils/tests/difftochanges.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import diff from '../src/diff';

+ 1 - 1
packages/ckeditor5-utils/tests/dom/createelement.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/emittermixin.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document, window, Event, MouseEvent */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/getancestors.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/getborderwidths.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import getBorderWidths from '../../src/dom/getborderwidths';

+ 1 - 1
packages/ckeditor5-utils/tests/dom/getcommonancestor.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/getdatafromelement.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/getpositionedancestor.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/global.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global window, document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/indexof.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/insertat.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/isdomnode.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document, window */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/isrange.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global Range */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/istext.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document, Text */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/iswindow.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global window */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/position.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document, window */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/rect.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global window, document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/remove.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/scroll.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global window, document, Text */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/setdatainelement.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/dom/tounit.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import toUnit from '../../src/dom/tounit';

+ 1 - 1
packages/ckeditor5-utils/tests/elementreplacer.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* globals document */

+ 1 - 1
packages/ckeditor5-utils/tests/emittermixin.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import { default as EmitterMixin, _getEmitterListenedTo, _getEmitterId, _setEmitterId } from '../src/emittermixin';

+ 1 - 1
packages/ckeditor5-utils/tests/env.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import env, { isEdge, isMac, isGecko, isSafari } from '../src/env';

+ 1 - 1
packages/ckeditor5-utils/tests/eventinfo.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import EventInfo from '../src/eventinfo';

+ 1 - 1
packages/ckeditor5-utils/tests/fastdiff.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document */

+ 1 - 1
packages/ckeditor5-utils/tests/first.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import first from '../src/first';

+ 1 - 1
packages/ckeditor5-utils/tests/focustracker.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* global document, Event */

+ 1 - 1
packages/ckeditor5-utils/tests/isIterable.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import isIterable from '../src/isiterable';

+ 1 - 1
packages/ckeditor5-utils/tests/keyboard.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import env from '../src/env';

+ 1 - 1
packages/ckeditor5-utils/tests/keystrokehandler.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import EmitterMixin from '../src/emittermixin';

+ 1 - 1
packages/ckeditor5-utils/tests/locale.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 import Locale from '../src/locale';

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini