@ckeditor/ckeditor5-core 47.3.0-alpha.7 → 47.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/index-content.css +1 -1
  3. package/dist/index-editor.css +1 -1
  4. package/dist/index.css +2 -2
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +63 -3
  7. package/dist/index.js.map +1 -1
  8. package/dist/translations/af.d.ts +1 -1
  9. package/dist/translations/af.js +1 -1
  10. package/dist/translations/af.umd.js +1 -1
  11. package/dist/translations/ar.d.ts +1 -1
  12. package/dist/translations/ar.js +1 -1
  13. package/dist/translations/ar.umd.js +1 -1
  14. package/dist/translations/ast.d.ts +1 -1
  15. package/dist/translations/ast.js +1 -1
  16. package/dist/translations/ast.umd.js +1 -1
  17. package/dist/translations/az.d.ts +1 -1
  18. package/dist/translations/az.js +1 -1
  19. package/dist/translations/az.umd.js +1 -1
  20. package/dist/translations/be.d.ts +1 -1
  21. package/dist/translations/be.js +1 -1
  22. package/dist/translations/be.umd.js +1 -1
  23. package/dist/translations/bg.d.ts +1 -1
  24. package/dist/translations/bg.js +1 -1
  25. package/dist/translations/bg.umd.js +1 -1
  26. package/dist/translations/bn.d.ts +1 -1
  27. package/dist/translations/bn.js +1 -1
  28. package/dist/translations/bn.umd.js +1 -1
  29. package/dist/translations/bs.d.ts +1 -1
  30. package/dist/translations/bs.js +1 -1
  31. package/dist/translations/bs.umd.js +1 -1
  32. package/dist/translations/ca.d.ts +1 -1
  33. package/dist/translations/ca.js +1 -1
  34. package/dist/translations/ca.umd.js +1 -1
  35. package/dist/translations/cs.d.ts +1 -1
  36. package/dist/translations/cs.js +1 -1
  37. package/dist/translations/cs.umd.js +1 -1
  38. package/dist/translations/da.d.ts +1 -1
  39. package/dist/translations/da.js +1 -1
  40. package/dist/translations/da.umd.js +1 -1
  41. package/dist/translations/de-ch.d.ts +1 -1
  42. package/dist/translations/de-ch.js +1 -1
  43. package/dist/translations/de-ch.umd.js +1 -1
  44. package/dist/translations/de.d.ts +1 -1
  45. package/dist/translations/de.js +1 -1
  46. package/dist/translations/de.umd.js +1 -1
  47. package/dist/translations/el.d.ts +1 -1
  48. package/dist/translations/el.js +1 -1
  49. package/dist/translations/el.umd.js +1 -1
  50. package/dist/translations/en-au.d.ts +1 -1
  51. package/dist/translations/en-au.js +1 -1
  52. package/dist/translations/en-au.umd.js +1 -1
  53. package/dist/translations/en-gb.d.ts +1 -1
  54. package/dist/translations/en-gb.js +1 -1
  55. package/dist/translations/en-gb.umd.js +1 -1
  56. package/dist/translations/en.d.ts +1 -1
  57. package/dist/translations/en.js +1 -1
  58. package/dist/translations/en.umd.js +1 -1
  59. package/dist/translations/eo.d.ts +1 -1
  60. package/dist/translations/eo.js +1 -1
  61. package/dist/translations/eo.umd.js +1 -1
  62. package/dist/translations/es-co.d.ts +1 -1
  63. package/dist/translations/es-co.js +1 -1
  64. package/dist/translations/es-co.umd.js +1 -1
  65. package/dist/translations/es.d.ts +1 -1
  66. package/dist/translations/es.js +1 -1
  67. package/dist/translations/es.umd.js +1 -1
  68. package/dist/translations/et.d.ts +1 -1
  69. package/dist/translations/et.js +1 -1
  70. package/dist/translations/et.umd.js +1 -1
  71. package/dist/translations/eu.d.ts +1 -1
  72. package/dist/translations/eu.js +1 -1
  73. package/dist/translations/eu.umd.js +1 -1
  74. package/dist/translations/fa.d.ts +1 -1
  75. package/dist/translations/fa.js +1 -1
  76. package/dist/translations/fa.umd.js +1 -1
  77. package/dist/translations/fi.d.ts +1 -1
  78. package/dist/translations/fi.js +1 -1
  79. package/dist/translations/fi.umd.js +1 -1
  80. package/dist/translations/fr.d.ts +1 -1
  81. package/dist/translations/fr.js +1 -1
  82. package/dist/translations/fr.umd.js +1 -1
  83. package/dist/translations/gl.d.ts +1 -1
  84. package/dist/translations/gl.js +1 -1
  85. package/dist/translations/gl.umd.js +1 -1
  86. package/dist/translations/gu.d.ts +1 -1
  87. package/dist/translations/gu.js +1 -1
  88. package/dist/translations/gu.umd.js +1 -1
  89. package/dist/translations/he.d.ts +1 -1
  90. package/dist/translations/he.js +1 -1
  91. package/dist/translations/he.umd.js +1 -1
  92. package/dist/translations/hi.d.ts +1 -1
  93. package/dist/translations/hi.js +1 -1
  94. package/dist/translations/hi.umd.js +1 -1
  95. package/dist/translations/hr.d.ts +1 -1
  96. package/dist/translations/hr.js +1 -1
  97. package/dist/translations/hr.umd.js +1 -1
  98. package/dist/translations/hu.d.ts +1 -1
  99. package/dist/translations/hu.js +1 -1
  100. package/dist/translations/hu.umd.js +1 -1
  101. package/dist/translations/hy.d.ts +1 -1
  102. package/dist/translations/hy.js +1 -1
  103. package/dist/translations/hy.umd.js +1 -1
  104. package/dist/translations/id.d.ts +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.d.ts +1 -1
  108. package/dist/translations/it.js +1 -1
  109. package/dist/translations/it.umd.js +1 -1
  110. package/dist/translations/ja.d.ts +1 -1
  111. package/dist/translations/ja.js +1 -1
  112. package/dist/translations/ja.umd.js +1 -1
  113. package/dist/translations/jv.d.ts +1 -1
  114. package/dist/translations/jv.js +1 -1
  115. package/dist/translations/jv.umd.js +1 -1
  116. package/dist/translations/kk.d.ts +1 -1
  117. package/dist/translations/kk.js +1 -1
  118. package/dist/translations/kk.umd.js +1 -1
  119. package/dist/translations/km.d.ts +1 -1
  120. package/dist/translations/km.js +1 -1
  121. package/dist/translations/km.umd.js +1 -1
  122. package/dist/translations/kn.d.ts +1 -1
  123. package/dist/translations/kn.js +1 -1
  124. package/dist/translations/kn.umd.js +1 -1
  125. package/dist/translations/ko.d.ts +1 -1
  126. package/dist/translations/ko.js +1 -1
  127. package/dist/translations/ko.umd.js +1 -1
  128. package/dist/translations/ku.d.ts +1 -1
  129. package/dist/translations/ku.js +1 -1
  130. package/dist/translations/ku.umd.js +1 -1
  131. package/dist/translations/lt.d.ts +1 -1
  132. package/dist/translations/lt.js +1 -1
  133. package/dist/translations/lt.umd.js +1 -1
  134. package/dist/translations/lv.d.ts +1 -1
  135. package/dist/translations/lv.js +1 -1
  136. package/dist/translations/lv.umd.js +1 -1
  137. package/dist/translations/ms.d.ts +1 -1
  138. package/dist/translations/ms.js +1 -1
  139. package/dist/translations/ms.umd.js +1 -1
  140. package/dist/translations/nb.d.ts +1 -1
  141. package/dist/translations/nb.js +1 -1
  142. package/dist/translations/nb.umd.js +1 -1
  143. package/dist/translations/ne.d.ts +1 -1
  144. package/dist/translations/ne.js +1 -1
  145. package/dist/translations/ne.umd.js +1 -1
  146. package/dist/translations/nl.d.ts +1 -1
  147. package/dist/translations/nl.js +1 -1
  148. package/dist/translations/nl.umd.js +1 -1
  149. package/dist/translations/no.d.ts +1 -1
  150. package/dist/translations/no.js +1 -1
  151. package/dist/translations/no.umd.js +1 -1
  152. package/dist/translations/oc.d.ts +1 -1
  153. package/dist/translations/oc.js +1 -1
  154. package/dist/translations/oc.umd.js +1 -1
  155. package/dist/translations/pl.d.ts +1 -1
  156. package/dist/translations/pl.js +1 -1
  157. package/dist/translations/pl.umd.js +1 -1
  158. package/dist/translations/pt-br.d.ts +1 -1
  159. package/dist/translations/pt-br.js +1 -1
  160. package/dist/translations/pt-br.umd.js +1 -1
  161. package/dist/translations/pt.d.ts +1 -1
  162. package/dist/translations/pt.js +1 -1
  163. package/dist/translations/pt.umd.js +1 -1
  164. package/dist/translations/ro.d.ts +1 -1
  165. package/dist/translations/ro.js +1 -1
  166. package/dist/translations/ro.umd.js +1 -1
  167. package/dist/translations/ru.d.ts +1 -1
  168. package/dist/translations/ru.js +1 -1
  169. package/dist/translations/ru.umd.js +1 -1
  170. package/dist/translations/si.d.ts +1 -1
  171. package/dist/translations/si.js +1 -1
  172. package/dist/translations/si.umd.js +1 -1
  173. package/dist/translations/sk.d.ts +1 -1
  174. package/dist/translations/sk.js +1 -1
  175. package/dist/translations/sk.umd.js +1 -1
  176. package/dist/translations/sl.d.ts +1 -1
  177. package/dist/translations/sl.js +1 -1
  178. package/dist/translations/sl.umd.js +1 -1
  179. package/dist/translations/sq.d.ts +1 -1
  180. package/dist/translations/sq.js +1 -1
  181. package/dist/translations/sq.umd.js +1 -1
  182. package/dist/translations/sr-latn.d.ts +1 -1
  183. package/dist/translations/sr-latn.js +1 -1
  184. package/dist/translations/sr-latn.umd.js +1 -1
  185. package/dist/translations/sr.d.ts +1 -1
  186. package/dist/translations/sr.js +1 -1
  187. package/dist/translations/sr.umd.js +1 -1
  188. package/dist/translations/sv.d.ts +1 -1
  189. package/dist/translations/sv.js +1 -1
  190. package/dist/translations/sv.umd.js +1 -1
  191. package/dist/translations/th.d.ts +1 -1
  192. package/dist/translations/th.js +1 -1
  193. package/dist/translations/th.umd.js +1 -1
  194. package/dist/translations/ti.d.ts +1 -1
  195. package/dist/translations/ti.js +1 -1
  196. package/dist/translations/ti.umd.js +1 -1
  197. package/dist/translations/tk.d.ts +1 -1
  198. package/dist/translations/tk.js +1 -1
  199. package/dist/translations/tk.umd.js +1 -1
  200. package/dist/translations/tr.d.ts +1 -1
  201. package/dist/translations/tr.js +1 -1
  202. package/dist/translations/tr.umd.js +1 -1
  203. package/dist/translations/tt.d.ts +1 -1
  204. package/dist/translations/tt.js +1 -1
  205. package/dist/translations/tt.umd.js +1 -1
  206. package/dist/translations/ug.d.ts +1 -1
  207. package/dist/translations/ug.js +1 -1
  208. package/dist/translations/ug.umd.js +1 -1
  209. package/dist/translations/uk.d.ts +1 -1
  210. package/dist/translations/uk.js +1 -1
  211. package/dist/translations/uk.umd.js +1 -1
  212. package/dist/translations/ur.d.ts +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.d.ts +1 -1
  216. package/dist/translations/uz.js +1 -1
  217. package/dist/translations/uz.umd.js +1 -1
  218. package/dist/translations/vi.d.ts +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.d.ts +1 -1
  222. package/dist/translations/zh-cn.js +1 -1
  223. package/dist/translations/zh-cn.umd.js +1 -1
  224. package/dist/translations/zh.d.ts +1 -1
  225. package/dist/translations/zh.js +1 -1
  226. package/dist/translations/zh.umd.js +1 -1
  227. package/lang/translations/af.po +1 -1
  228. package/lang/translations/ar.po +1 -1
  229. package/lang/translations/ast.po +1 -1
  230. package/lang/translations/az.po +1 -1
  231. package/lang/translations/be.po +1 -1
  232. package/lang/translations/bg.po +1 -1
  233. package/lang/translations/bn.po +1 -1
  234. package/lang/translations/bs.po +1 -1
  235. package/lang/translations/ca.po +1 -1
  236. package/lang/translations/cs.po +1 -1
  237. package/lang/translations/da.po +1 -1
  238. package/lang/translations/de-ch.po +1 -1
  239. package/lang/translations/de.po +1 -1
  240. package/lang/translations/el.po +1 -1
  241. package/lang/translations/en-au.po +1 -1
  242. package/lang/translations/en-gb.po +1 -1
  243. package/lang/translations/en.po +1 -1
  244. package/lang/translations/eo.po +1 -1
  245. package/lang/translations/es-co.po +1 -1
  246. package/lang/translations/es.po +1 -1
  247. package/lang/translations/et.po +1 -1
  248. package/lang/translations/eu.po +1 -1
  249. package/lang/translations/fa.po +1 -1
  250. package/lang/translations/fi.po +1 -1
  251. package/lang/translations/fr.po +1 -1
  252. package/lang/translations/gl.po +1 -1
  253. package/lang/translations/gu.po +1 -1
  254. package/lang/translations/he.po +1 -1
  255. package/lang/translations/hi.po +1 -1
  256. package/lang/translations/hr.po +1 -1
  257. package/lang/translations/hu.po +1 -1
  258. package/lang/translations/hy.po +1 -1
  259. package/lang/translations/id.po +1 -1
  260. package/lang/translations/it.po +1 -1
  261. package/lang/translations/ja.po +1 -1
  262. package/lang/translations/jv.po +1 -1
  263. package/lang/translations/kk.po +1 -1
  264. package/lang/translations/km.po +1 -1
  265. package/lang/translations/kn.po +1 -1
  266. package/lang/translations/ko.po +1 -1
  267. package/lang/translations/ku.po +1 -1
  268. package/lang/translations/lt.po +1 -1
  269. package/lang/translations/lv.po +1 -1
  270. package/lang/translations/ms.po +1 -1
  271. package/lang/translations/nb.po +1 -1
  272. package/lang/translations/ne.po +1 -1
  273. package/lang/translations/nl.po +1 -1
  274. package/lang/translations/no.po +1 -1
  275. package/lang/translations/oc.po +1 -1
  276. package/lang/translations/pl.po +1 -1
  277. package/lang/translations/pt-br.po +1 -1
  278. package/lang/translations/pt.po +1 -1
  279. package/lang/translations/ro.po +1 -1
  280. package/lang/translations/ru.po +1 -1
  281. package/lang/translations/si.po +1 -1
  282. package/lang/translations/sk.po +1 -1
  283. package/lang/translations/sl.po +1 -1
  284. package/lang/translations/sq.po +1 -1
  285. package/lang/translations/sr-latn.po +1 -1
  286. package/lang/translations/sr.po +1 -1
  287. package/lang/translations/sv.po +1 -1
  288. package/lang/translations/th.po +1 -1
  289. package/lang/translations/ti.po +1 -1
  290. package/lang/translations/tk.po +1 -1
  291. package/lang/translations/tr.po +1 -1
  292. package/lang/translations/tt.po +1 -1
  293. package/lang/translations/ug.po +1 -1
  294. package/lang/translations/uk.po +1 -1
  295. package/lang/translations/ur.po +1 -1
  296. package/lang/translations/uz.po +1 -1
  297. package/lang/translations/vi.po +1 -1
  298. package/lang/translations/zh-cn.po +1 -1
  299. package/lang/translations/zh.po +1 -1
  300. package/package.json +6 -6
  301. package/src/accessibility.d.ts +1 -1
  302. package/src/accessibility.js +1 -1
  303. package/src/augmentation.d.ts +1 -1
  304. package/src/augmentation.js +1 -1
  305. package/src/command.d.ts +9 -1
  306. package/src/command.js +12 -1
  307. package/src/commandcollection.d.ts +1 -1
  308. package/src/commandcollection.js +1 -1
  309. package/src/context.d.ts +9 -1
  310. package/src/context.js +12 -1
  311. package/src/contextplugin.d.ts +1 -1
  312. package/src/contextplugin.js +1 -1
  313. package/src/editingkeystrokehandler.d.ts +1 -1
  314. package/src/editingkeystrokehandler.js +1 -1
  315. package/src/editor/editor.d.ts +9 -1
  316. package/src/editor/editor.js +25 -1
  317. package/src/editor/editorconfig.d.ts +1 -1
  318. package/src/editor/editorconfig.js +1 -1
  319. package/src/editor/utils/attachtoform.d.ts +1 -1
  320. package/src/editor/utils/attachtoform.js +1 -1
  321. package/src/editor/utils/editorusagedata.d.ts +1 -1
  322. package/src/editor/utils/editorusagedata.js +1 -1
  323. package/src/editor/utils/elementapimixin.d.ts +1 -1
  324. package/src/editor/utils/elementapimixin.js +1 -1
  325. package/src/editor/utils/securesourceelement.d.ts +1 -1
  326. package/src/editor/utils/securesourceelement.js +1 -1
  327. package/src/index.d.ts +1 -1
  328. package/src/index.js +1 -1
  329. package/src/multicommand.d.ts +1 -1
  330. package/src/multicommand.js +1 -1
  331. package/src/pendingactions.d.ts +1 -1
  332. package/src/pendingactions.js +1 -1
  333. package/src/plugin.d.ts +1 -1
  334. package/src/plugin.js +1 -1
  335. package/src/plugincollection.d.ts +1 -1
  336. package/src/plugincollection.js +23 -5
  337. package/src/typings.d.ts +1 -1
  338. package/src/typings.js +1 -1
  339. package/theme/core.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { Config, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils';
@@ -243,6 +243,14 @@ export declare abstract class Editor extends /* #__PURE__ */ Editor_base {
243
243
  * A set of lock IDs for the {@link #isReadOnly} getter.
244
244
  */
245
245
  protected readonly _readOnlyLocks: Set<symbol | string>;
246
+ /**
247
+ * `Editor` class is commonly put in `config.plugins` array.
248
+ *
249
+ * This property helps with better error detection.
250
+ *
251
+ * @internal
252
+ */
253
+ static get _throwErrorWhenUsedAsAPlugin(): true;
246
254
  /**
247
255
  * Creates a new instance of the editor class.
248
256
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -220,6 +220,17 @@ export class Editor extends /* #__PURE__ */ ObservableMixin() {
220
220
  * A set of lock IDs for the {@link #isReadOnly} getter.
221
221
  */
222
222
  _readOnlyLocks;
223
+ /**
224
+ * `Editor` class is commonly put in `config.plugins` array.
225
+ *
226
+ * This property helps with better error detection.
227
+ *
228
+ * @internal
229
+ */
230
+ static get _throwErrorWhenUsedAsAPlugin() {
231
+ return true;
232
+ }
233
+ ;
223
234
  /**
224
235
  * Creates a new instance of the editor class.
225
236
  *
@@ -229,6 +240,19 @@ export class Editor extends /* #__PURE__ */ ObservableMixin() {
229
240
  */
230
241
  constructor(config = {}) {
231
242
  super();
243
+ if (typeof config !== 'object' || Array.isArray(config)) {
244
+ /**
245
+ * Editor configuration must be an object.
246
+ *
247
+ * A common cause of this error is passing an Editor class (for example
248
+ * `ClassicEditor`) in the `config.plugins` array. In such case, the editor
249
+ * constructor is called with an Editor or Context instance instead of
250
+ * the configuration object.
251
+ *
252
+ * @error editor-config-invalid-type
253
+ */
254
+ throw new CKEditorError('editor-config-invalid-type');
255
+ }
232
256
  if ('sanitizeHtml' in config) {
233
257
  /**
234
258
  * Configuration property `config.sanitizeHtml` was removed in CKEditor version 43.1.0 and is no longer supported.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { Editor } from '../editor.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { type Editor } from '../editor.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { Editor } from '../editor.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/plugin.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { type Editor } from './editor/editor.js';
package/src/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { LoadedPlugins, PluginClassConstructor, PluginConstructor, PluginInterface } from './plugin.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -139,7 +139,7 @@ export class PluginCollection extends /* #__PURE__ */ EmitterMixin() {
139
139
  * * Both plugins must not depend on other plugins.
140
140
  * @returns A promise which gets resolved once all plugins are loaded and available in the collection.
141
141
  */
142
- init(plugins, pluginsToRemove = [], pluginsSubstitutions = []) {
142
+ async init(plugins, pluginsToRemove = [], pluginsSubstitutions = []) {
143
143
  // Plugin initialization procedure consists of 2 main steps:
144
144
  // 1) collecting all available plugin constructors,
145
145
  // 2) verification whether all required plugins can be instantiated.
@@ -163,9 +163,9 @@ export class PluginCollection extends /* #__PURE__ */ EmitterMixin() {
163
163
  const pluginConstructors = [...getPluginConstructors(pluginsToLoad)];
164
164
  substitutePlugins(pluginConstructors, pluginsSubstitutions);
165
165
  const pluginInstances = loadPlugins(pluginConstructors);
166
- return initPlugins(pluginInstances, 'init')
167
- .then(() => initPlugins(pluginInstances, 'afterInit'))
168
- .then(() => pluginInstances);
166
+ await initPlugins(pluginInstances, 'init');
167
+ await initPlugins(pluginInstances, 'afterInit');
168
+ return pluginInstances;
169
169
  function isPluginConstructor(plugin) {
170
170
  return typeof plugin === 'function';
171
171
  }
@@ -235,11 +235,29 @@ export class PluginCollection extends /* #__PURE__ */ EmitterMixin() {
235
235
  that._availablePlugins.get(plugin) || plugin;
236
236
  })
237
237
  .forEach(plugin => {
238
+ checkPluginConstructor(plugin);
238
239
  checkMissingPlugin(plugin, parentPluginConstructor);
239
240
  checkContextPlugin(plugin, parentPluginConstructor);
240
241
  checkRemovedPlugin(plugin, parentPluginConstructor);
241
242
  });
242
243
  }
244
+ function checkPluginConstructor(plugin) {
245
+ if (typeof plugin !== 'function') {
246
+ return;
247
+ }
248
+ if (plugin._throwErrorWhenUsedAsAPlugin) {
249
+ /**
250
+ * The provided class constructor is not a plugin.
251
+ *
252
+ * This error is usually caused by passing an editor, context, or command
253
+ * constructor in the `config.plugins` array.
254
+ *
255
+ * @param {String} name The name of the provided constructor.
256
+ * @error plugincollection-plugin-invalid-constructor
257
+ */
258
+ throw new CKEditorError('plugincollection-plugin-invalid-constructor', context, { name: plugin.name });
259
+ }
260
+ }
243
261
  function checkMissingPlugin(plugin, parentPluginConstructor) {
244
262
  if (isPluginConstructor(plugin)) {
245
263
  return;
package/src/typings.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
package/src/typings.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
package/theme/core.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5