@ckeditor/ckeditor5-ui 47.6.1 → 48.0.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 (367) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +3 -3
  3. package/{src → dist}/colorselector/documentcolorcollection.d.ts +4 -4
  4. package/{src → dist}/dialog/dialog.d.ts +1 -1
  5. package/dist/index-editor.css +2728 -587
  6. package/dist/index.css +2673 -850
  7. package/dist/index.css.map +1 -1
  8. package/dist/index.js +11 -1
  9. package/dist/index.js.map +1 -1
  10. package/{src → dist}/menubar/menubarmenuview.d.ts +4 -0
  11. package/{src → dist}/view.d.ts +1 -1
  12. package/package.json +25 -47
  13. package/lang/contexts.json +0 -51
  14. package/lang/translations/af.po +0 -208
  15. package/lang/translations/ar.po +0 -208
  16. package/lang/translations/ast.po +0 -208
  17. package/lang/translations/az.po +0 -208
  18. package/lang/translations/be.po +0 -208
  19. package/lang/translations/bg.po +0 -208
  20. package/lang/translations/bn.po +0 -208
  21. package/lang/translations/bs.po +0 -208
  22. package/lang/translations/ca.po +0 -208
  23. package/lang/translations/cs.po +0 -208
  24. package/lang/translations/da.po +0 -208
  25. package/lang/translations/de-ch.po +0 -208
  26. package/lang/translations/de.po +0 -208
  27. package/lang/translations/el.po +0 -208
  28. package/lang/translations/en-au.po +0 -208
  29. package/lang/translations/en-gb.po +0 -208
  30. package/lang/translations/en.po +0 -208
  31. package/lang/translations/eo.po +0 -208
  32. package/lang/translations/es-co.po +0 -208
  33. package/lang/translations/es.po +0 -208
  34. package/lang/translations/et.po +0 -208
  35. package/lang/translations/eu.po +0 -208
  36. package/lang/translations/fa.po +0 -208
  37. package/lang/translations/fi.po +0 -208
  38. package/lang/translations/fr.po +0 -208
  39. package/lang/translations/gl.po +0 -208
  40. package/lang/translations/gu.po +0 -208
  41. package/lang/translations/he.po +0 -208
  42. package/lang/translations/hi.po +0 -208
  43. package/lang/translations/hr.po +0 -208
  44. package/lang/translations/hu.po +0 -208
  45. package/lang/translations/hy.po +0 -208
  46. package/lang/translations/id.po +0 -208
  47. package/lang/translations/it.po +0 -208
  48. package/lang/translations/ja.po +0 -208
  49. package/lang/translations/jv.po +0 -208
  50. package/lang/translations/kk.po +0 -208
  51. package/lang/translations/km.po +0 -208
  52. package/lang/translations/kn.po +0 -208
  53. package/lang/translations/ko.po +0 -208
  54. package/lang/translations/ku.po +0 -208
  55. package/lang/translations/lt.po +0 -208
  56. package/lang/translations/lv.po +0 -208
  57. package/lang/translations/ms.po +0 -208
  58. package/lang/translations/nb.po +0 -208
  59. package/lang/translations/ne.po +0 -208
  60. package/lang/translations/nl.po +0 -208
  61. package/lang/translations/no.po +0 -208
  62. package/lang/translations/oc.po +0 -208
  63. package/lang/translations/pl.po +0 -208
  64. package/lang/translations/pt-br.po +0 -208
  65. package/lang/translations/pt.po +0 -208
  66. package/lang/translations/ro.po +0 -208
  67. package/lang/translations/ru.po +0 -208
  68. package/lang/translations/si.po +0 -208
  69. package/lang/translations/sk.po +0 -208
  70. package/lang/translations/sl.po +0 -208
  71. package/lang/translations/sq.po +0 -208
  72. package/lang/translations/sr-latn.po +0 -208
  73. package/lang/translations/sr.po +0 -208
  74. package/lang/translations/sv.po +0 -208
  75. package/lang/translations/th.po +0 -208
  76. package/lang/translations/ti.po +0 -208
  77. package/lang/translations/tk.po +0 -208
  78. package/lang/translations/tr.po +0 -208
  79. package/lang/translations/tt.po +0 -208
  80. package/lang/translations/ug.po +0 -208
  81. package/lang/translations/uk.po +0 -208
  82. package/lang/translations/ur.po +0 -208
  83. package/lang/translations/uz.po +0 -208
  84. package/lang/translations/vi.po +0 -208
  85. package/lang/translations/zh-cn.po +0 -208
  86. package/lang/translations/zh.po +0 -208
  87. package/src/arialiveannouncer.js +0 -189
  88. package/src/augmentation.js +0 -5
  89. package/src/autocomplete/autocompleteview.js +0 -157
  90. package/src/badge/badge.js +0 -226
  91. package/src/bindings/addkeyboardhandlingforgrid.js +0 -107
  92. package/src/bindings/clickoutsidehandler.js +0 -36
  93. package/src/bindings/csstransitiondisablermixin.js +0 -58
  94. package/src/bindings/draggableviewmixin.js +0 -144
  95. package/src/bindings/preventdefault.js +0 -35
  96. package/src/bindings/submithandler.js +0 -47
  97. package/src/button/button.js +0 -5
  98. package/src/button/buttonlabel.js +0 -5
  99. package/src/button/buttonlabelview.js +0 -42
  100. package/src/button/buttonview.js +0 -278
  101. package/src/button/filedialogbuttonview.js +0 -147
  102. package/src/button/listitembuttonview.js +0 -136
  103. package/src/button/switchbuttonview.js +0 -79
  104. package/src/collapsible/collapsibleview.js +0 -106
  105. package/src/colorgrid/colorgridview.js +0 -140
  106. package/src/colorgrid/colortileview.js +0 -42
  107. package/src/colorgrid/utils.js +0 -84
  108. package/src/colorpicker/colorpickerview.js +0 -356
  109. package/src/colorpicker/utils.js +0 -108
  110. package/src/colorselector/colorgridsfragmentview.js +0 -368
  111. package/src/colorselector/colorpickerfragmentview.js +0 -254
  112. package/src/colorselector/colorselectorview.js +0 -294
  113. package/src/colorselector/documentcolorcollection.js +0 -42
  114. package/src/componentfactory.js +0 -108
  115. package/src/dialog/dialog.js +0 -325
  116. package/src/dialog/dialogactionsview.js +0 -118
  117. package/src/dialog/dialogcontentview.js +0 -39
  118. package/src/dialog/dialogview.js +0 -507
  119. package/src/dropdown/button/dropdownbutton.js +0 -5
  120. package/src/dropdown/button/dropdownbuttonview.js +0 -70
  121. package/src/dropdown/button/splitbuttonview.js +0 -178
  122. package/src/dropdown/dropdownpanelfocusable.js +0 -5
  123. package/src/dropdown/dropdownpanelview.js +0 -106
  124. package/src/dropdown/dropdownview.js +0 -438
  125. package/src/dropdown/menu/dropdownmenubehaviors.js +0 -125
  126. package/src/dropdown/menu/dropdownmenubuttonview.js +0 -69
  127. package/src/dropdown/menu/dropdownmenulistitembuttonview.js +0 -30
  128. package/src/dropdown/menu/dropdownmenulistitemview.js +0 -38
  129. package/src/dropdown/menu/dropdownmenulistview.js +0 -29
  130. package/src/dropdown/menu/dropdownmenunestedmenupanelview.js +0 -63
  131. package/src/dropdown/menu/dropdownmenunestedmenuview.js +0 -214
  132. package/src/dropdown/menu/dropdownmenurootlistview.js +0 -168
  133. package/src/dropdown/menu/utils.js +0 -61
  134. package/src/dropdown/utils.js +0 -654
  135. package/src/editableui/editableuiview.js +0 -130
  136. package/src/editableui/inline/inlineeditableuiview.js +0 -75
  137. package/src/editorui/accessibilityhelp/accessibilityhelp.js +0 -142
  138. package/src/editorui/accessibilityhelp/accessibilityhelpcontentview.js +0 -112
  139. package/src/editorui/bodycollection.js +0 -128
  140. package/src/editorui/boxed/boxededitoruiview.js +0 -95
  141. package/src/editorui/editorui.js +0 -586
  142. package/src/editorui/editoruiview.js +0 -60
  143. package/src/editorui/evaluationbadge.js +0 -99
  144. package/src/editorui/poweredby.js +0 -120
  145. package/src/focuscycler.js +0 -383
  146. package/src/formheader/formheaderview.js +0 -77
  147. package/src/formrow/formrowview.js +0 -56
  148. package/src/highlightedtext/buttonlabelwithhighlightview.js +0 -31
  149. package/src/highlightedtext/highlightedtextview.js +0 -102
  150. package/src/highlightedtext/labelwithhighlightview.js +0 -37
  151. package/src/icon/iconview.js +0 -123
  152. package/src/iframe/iframeview.js +0 -63
  153. package/src/index.js +0 -132
  154. package/src/input/inputbase.js +0 -119
  155. package/src/input/inputview.js +0 -24
  156. package/src/inputnumber/inputnumberview.js +0 -40
  157. package/src/inputtext/inputtextview.js +0 -27
  158. package/src/label/labelview.js +0 -46
  159. package/src/labeledfield/labeledfieldview.js +0 -177
  160. package/src/labeledfield/utils.js +0 -176
  161. package/src/labeledinput/labeledinputview.js +0 -138
  162. package/src/legacyerrors.js +0 -20
  163. package/src/list/listitemgroupview.js +0 -82
  164. package/src/list/listitemview.js +0 -46
  165. package/src/list/listseparatorview.js +0 -28
  166. package/src/list/listview.js +0 -210
  167. package/src/menubar/menubarmenubuttonview.js +0 -68
  168. package/src/menubar/menubarmenulistitembuttonview.js +0 -30
  169. package/src/menubar/menubarmenulistitemfiledialogbuttonview.js +0 -32
  170. package/src/menubar/menubarmenulistitemview.js +0 -34
  171. package/src/menubar/menubarmenulistview.js +0 -72
  172. package/src/menubar/menubarmenupanelview.js +0 -64
  173. package/src/menubar/menubarmenuview.js +0 -198
  174. package/src/menubar/menubarview.js +0 -281
  175. package/src/menubar/utils.js +0 -1432
  176. package/src/model.js +0 -31
  177. package/src/notification/notification.js +0 -192
  178. package/src/panel/balloon/balloonpanelview.js +0 -1077
  179. package/src/panel/balloon/contextualballoon.js +0 -616
  180. package/src/panel/sticky/stickypanelview.js +0 -246
  181. package/src/search/filteredview.js +0 -5
  182. package/src/search/filtergroupanditemnames.js +0 -38
  183. package/src/search/searchinfoview.js +0 -59
  184. package/src/search/searchresultsview.js +0 -83
  185. package/src/search/text/searchtextqueryview.js +0 -87
  186. package/src/search/text/searchtextview.js +0 -242
  187. package/src/spinner/spinnerview.js +0 -38
  188. package/src/template.js +0 -1396
  189. package/src/textarea/textareaview.js +0 -189
  190. package/src/toolbar/balloon/balloontoolbar.js +0 -358
  191. package/src/toolbar/block/blockbuttonview.js +0 -41
  192. package/src/toolbar/block/blocktoolbar.js +0 -507
  193. package/src/toolbar/normalizetoolbarconfig.js +0 -52
  194. package/src/toolbar/toolbarlinebreakview.js +0 -28
  195. package/src/toolbar/toolbarseparatorview.js +0 -28
  196. package/src/toolbar/toolbarview.js +0 -873
  197. package/src/tooltipmanager.js +0 -454
  198. package/src/view.js +0 -471
  199. package/src/viewcollection.js +0 -210
  200. package/theme/components/arialiveannouncer/arialiveannouncer.css +0 -14
  201. package/theme/components/autocomplete/autocomplete.css +0 -22
  202. package/theme/components/button/button.css +0 -39
  203. package/theme/components/button/listitembutton.css +0 -48
  204. package/theme/components/button/switchbutton.css +0 -14
  205. package/theme/components/collapsible/collapsible.css +0 -10
  206. package/theme/components/colorgrid/colorgrid.css +0 -8
  207. package/theme/components/colorpicker/colorpicker.css +0 -34
  208. package/theme/components/colorselector/colorselector.css +0 -35
  209. package/theme/components/dialog/dialog.css +0 -42
  210. package/theme/components/dialog/dialogactions.css +0 -11
  211. package/theme/components/dropdown/dropdown.css +0 -95
  212. package/theme/components/dropdown/listdropdown.css +0 -10
  213. package/theme/components/dropdown/menu/dropdownmenu.css +0 -8
  214. package/theme/components/dropdown/menu/dropdownmenubutton.css +0 -9
  215. package/theme/components/dropdown/menu/dropdownmenulistitem.css +0 -10
  216. package/theme/components/dropdown/menu/dropdownmenulistitembutton.css +0 -10
  217. package/theme/components/dropdown/menu/dropdownmenupanel.css +0 -11
  218. package/theme/components/dropdown/splitbutton.css +0 -14
  219. package/theme/components/dropdown/toolbardropdown.css +0 -20
  220. package/theme/components/editorui/accessibilityhelp.css +0 -10
  221. package/theme/components/editorui/editorui.css +0 -10
  222. package/theme/components/form/form.css +0 -87
  223. package/theme/components/formheader/formheader.css +0 -18
  224. package/theme/components/formrow/formrow.css +0 -32
  225. package/theme/components/highlightedtext/highlightedtext.css +0 -12
  226. package/theme/components/icon/icon.css +0 -8
  227. package/theme/components/input/input.css +0 -10
  228. package/theme/components/label/label.css +0 -12
  229. package/theme/components/labeledfield/labeledfieldview.css +0 -16
  230. package/theme/components/labeledinput/labeledinput.css +0 -10
  231. package/theme/components/list/list.css +0 -26
  232. package/theme/components/menubar/menubar.css +0 -10
  233. package/theme/components/menubar/menubarmenu.css +0 -9
  234. package/theme/components/menubar/menubarmenubutton.css +0 -11
  235. package/theme/components/menubar/menubarmenulistitem.css +0 -10
  236. package/theme/components/menubar/menubarmenulistitembutton.css +0 -10
  237. package/theme/components/menubar/menubarmenupanel.css +0 -62
  238. package/theme/components/panel/balloonpanel.css +0 -56
  239. package/theme/components/panel/balloonrotator.css +0 -17
  240. package/theme/components/panel/fakepanel.css +0 -23
  241. package/theme/components/panel/stickypanel.css +0 -17
  242. package/theme/components/responsive-form/responsiveform.css +0 -42
  243. package/theme/components/search/search.css +0 -43
  244. package/theme/components/spinner/spinner.css +0 -23
  245. package/theme/components/textarea/textarea.css +0 -10
  246. package/theme/components/toolbar/blocktoolbar.css +0 -9
  247. package/theme/components/toolbar/toolbar.css +0 -58
  248. package/theme/components/tooltip/tooltip.css +0 -12
  249. package/theme/globals/_evaluationbadge.css +0 -54
  250. package/theme/globals/_hidden.css +0 -13
  251. package/theme/globals/_poweredby.css +0 -84
  252. package/theme/globals/_transition.css +0 -12
  253. package/theme/globals/_zindex.css +0 -10
  254. package/theme/globals/globals.css +0 -10
  255. package/theme/mixins/_dir.css +0 -10
  256. package/theme/mixins/_mediacolors.css +0 -20
  257. package/theme/mixins/_rwd.css +0 -10
  258. package/theme/mixins/_unselectable.css +0 -14
  259. /package/{src → dist}/arialiveannouncer.d.ts +0 -0
  260. /package/{src → dist}/augmentation.d.ts +0 -0
  261. /package/{src → dist}/autocomplete/autocompleteview.d.ts +0 -0
  262. /package/{src → dist}/badge/badge.d.ts +0 -0
  263. /package/{src → dist}/bindings/addkeyboardhandlingforgrid.d.ts +0 -0
  264. /package/{src → dist}/bindings/clickoutsidehandler.d.ts +0 -0
  265. /package/{src → dist}/bindings/csstransitiondisablermixin.d.ts +0 -0
  266. /package/{src → dist}/bindings/draggableviewmixin.d.ts +0 -0
  267. /package/{src → dist}/bindings/preventdefault.d.ts +0 -0
  268. /package/{src → dist}/bindings/submithandler.d.ts +0 -0
  269. /package/{src → dist}/button/button.d.ts +0 -0
  270. /package/{src → dist}/button/buttonlabel.d.ts +0 -0
  271. /package/{src → dist}/button/buttonlabelview.d.ts +0 -0
  272. /package/{src → dist}/button/buttonview.d.ts +0 -0
  273. /package/{src → dist}/button/filedialogbuttonview.d.ts +0 -0
  274. /package/{src → dist}/button/listitembuttonview.d.ts +0 -0
  275. /package/{src → dist}/button/switchbuttonview.d.ts +0 -0
  276. /package/{src → dist}/collapsible/collapsibleview.d.ts +0 -0
  277. /package/{src → dist}/colorgrid/colorgridview.d.ts +0 -0
  278. /package/{src → dist}/colorgrid/colortileview.d.ts +0 -0
  279. /package/{src → dist}/colorgrid/utils.d.ts +0 -0
  280. /package/{src → dist}/colorpicker/colorpickerview.d.ts +0 -0
  281. /package/{src → dist}/colorpicker/utils.d.ts +0 -0
  282. /package/{src → dist}/colorselector/colorgridsfragmentview.d.ts +0 -0
  283. /package/{src → dist}/colorselector/colorpickerfragmentview.d.ts +0 -0
  284. /package/{src → dist}/colorselector/colorselectorview.d.ts +0 -0
  285. /package/{src → dist}/componentfactory.d.ts +0 -0
  286. /package/{src → dist}/dialog/dialogactionsview.d.ts +0 -0
  287. /package/{src → dist}/dialog/dialogcontentview.d.ts +0 -0
  288. /package/{src → dist}/dialog/dialogview.d.ts +0 -0
  289. /package/{src → dist}/dropdown/button/dropdownbutton.d.ts +0 -0
  290. /package/{src → dist}/dropdown/button/dropdownbuttonview.d.ts +0 -0
  291. /package/{src → dist}/dropdown/button/splitbuttonview.d.ts +0 -0
  292. /package/{src → dist}/dropdown/dropdownpanelfocusable.d.ts +0 -0
  293. /package/{src → dist}/dropdown/dropdownpanelview.d.ts +0 -0
  294. /package/{src → dist}/dropdown/dropdownview.d.ts +0 -0
  295. /package/{src → dist}/dropdown/menu/dropdownmenubehaviors.d.ts +0 -0
  296. /package/{src → dist}/dropdown/menu/dropdownmenubuttonview.d.ts +0 -0
  297. /package/{src → dist}/dropdown/menu/dropdownmenulistitembuttonview.d.ts +0 -0
  298. /package/{src → dist}/dropdown/menu/dropdownmenulistitemview.d.ts +0 -0
  299. /package/{src → dist}/dropdown/menu/dropdownmenulistview.d.ts +0 -0
  300. /package/{src → dist}/dropdown/menu/dropdownmenunestedmenupanelview.d.ts +0 -0
  301. /package/{src → dist}/dropdown/menu/dropdownmenunestedmenuview.d.ts +0 -0
  302. /package/{src → dist}/dropdown/menu/dropdownmenurootlistview.d.ts +0 -0
  303. /package/{src → dist}/dropdown/menu/utils.d.ts +0 -0
  304. /package/{src → dist}/dropdown/utils.d.ts +0 -0
  305. /package/{src → dist}/editableui/editableuiview.d.ts +0 -0
  306. /package/{src → dist}/editableui/inline/inlineeditableuiview.d.ts +0 -0
  307. /package/{src → dist}/editorui/accessibilityhelp/accessibilityhelp.d.ts +0 -0
  308. /package/{src → dist}/editorui/accessibilityhelp/accessibilityhelpcontentview.d.ts +0 -0
  309. /package/{src → dist}/editorui/bodycollection.d.ts +0 -0
  310. /package/{src → dist}/editorui/boxed/boxededitoruiview.d.ts +0 -0
  311. /package/{src → dist}/editorui/editorui.d.ts +0 -0
  312. /package/{src → dist}/editorui/editoruiview.d.ts +0 -0
  313. /package/{src → dist}/editorui/evaluationbadge.d.ts +0 -0
  314. /package/{src → dist}/editorui/poweredby.d.ts +0 -0
  315. /package/{src → dist}/focuscycler.d.ts +0 -0
  316. /package/{src → dist}/formheader/formheaderview.d.ts +0 -0
  317. /package/{src → dist}/formrow/formrowview.d.ts +0 -0
  318. /package/{src → dist}/highlightedtext/buttonlabelwithhighlightview.d.ts +0 -0
  319. /package/{src → dist}/highlightedtext/highlightedtextview.d.ts +0 -0
  320. /package/{src → dist}/highlightedtext/labelwithhighlightview.d.ts +0 -0
  321. /package/{src → dist}/icon/iconview.d.ts +0 -0
  322. /package/{src → dist}/iframe/iframeview.d.ts +0 -0
  323. /package/{src → dist}/index.d.ts +0 -0
  324. /package/{src → dist}/input/inputbase.d.ts +0 -0
  325. /package/{src → dist}/input/inputview.d.ts +0 -0
  326. /package/{src → dist}/inputnumber/inputnumberview.d.ts +0 -0
  327. /package/{src → dist}/inputtext/inputtextview.d.ts +0 -0
  328. /package/{src → dist}/label/labelview.d.ts +0 -0
  329. /package/{src → dist}/labeledfield/labeledfieldview.d.ts +0 -0
  330. /package/{src → dist}/labeledfield/utils.d.ts +0 -0
  331. /package/{src → dist}/labeledinput/labeledinputview.d.ts +0 -0
  332. /package/{src → dist}/legacyerrors.d.ts +0 -0
  333. /package/{src → dist}/list/listitemgroupview.d.ts +0 -0
  334. /package/{src → dist}/list/listitemview.d.ts +0 -0
  335. /package/{src → dist}/list/listseparatorview.d.ts +0 -0
  336. /package/{src → dist}/list/listview.d.ts +0 -0
  337. /package/{src → dist}/menubar/menubarmenubuttonview.d.ts +0 -0
  338. /package/{src → dist}/menubar/menubarmenulistitembuttonview.d.ts +0 -0
  339. /package/{src → dist}/menubar/menubarmenulistitemfiledialogbuttonview.d.ts +0 -0
  340. /package/{src → dist}/menubar/menubarmenulistitemview.d.ts +0 -0
  341. /package/{src → dist}/menubar/menubarmenulistview.d.ts +0 -0
  342. /package/{src → dist}/menubar/menubarmenupanelview.d.ts +0 -0
  343. /package/{src → dist}/menubar/menubarview.d.ts +0 -0
  344. /package/{src → dist}/menubar/utils.d.ts +0 -0
  345. /package/{src → dist}/model.d.ts +0 -0
  346. /package/{src → dist}/notification/notification.d.ts +0 -0
  347. /package/{src → dist}/panel/balloon/balloonpanelview.d.ts +0 -0
  348. /package/{src → dist}/panel/balloon/contextualballoon.d.ts +0 -0
  349. /package/{src → dist}/panel/sticky/stickypanelview.d.ts +0 -0
  350. /package/{src → dist}/search/filteredview.d.ts +0 -0
  351. /package/{src → dist}/search/filtergroupanditemnames.d.ts +0 -0
  352. /package/{src → dist}/search/searchinfoview.d.ts +0 -0
  353. /package/{src → dist}/search/searchresultsview.d.ts +0 -0
  354. /package/{src → dist}/search/text/searchtextqueryview.d.ts +0 -0
  355. /package/{src → dist}/search/text/searchtextview.d.ts +0 -0
  356. /package/{src → dist}/spinner/spinnerview.d.ts +0 -0
  357. /package/{src → dist}/template.d.ts +0 -0
  358. /package/{src → dist}/textarea/textareaview.d.ts +0 -0
  359. /package/{src → dist}/toolbar/balloon/balloontoolbar.d.ts +0 -0
  360. /package/{src → dist}/toolbar/block/blockbuttonview.d.ts +0 -0
  361. /package/{src → dist}/toolbar/block/blocktoolbar.d.ts +0 -0
  362. /package/{src → dist}/toolbar/normalizetoolbarconfig.d.ts +0 -0
  363. /package/{src → dist}/toolbar/toolbarlinebreakview.d.ts +0 -0
  364. /package/{src → dist}/toolbar/toolbarseparatorview.d.ts +0 -0
  365. /package/{src → dist}/toolbar/toolbarview.d.ts +0 -0
  366. /package/{src → dist}/tooltipmanager.d.ts +0 -0
  367. /package/{src → dist}/viewcollection.d.ts +0 -0
@@ -1,507 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module ui/toolbar/block/blocktoolbar
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { getAncestors, global, Rect, ResizeObserver, toUnit } from '@ckeditor/ckeditor5-utils';
10
- import { BlockButtonView } from './blockbuttonview.js';
11
- import { BalloonPanelView } from '../../panel/balloon/balloonpanelview.js';
12
- import { ToolbarView, NESTED_TOOLBAR_ICONS } from '../toolbarview.js';
13
- import { clickOutsideHandler } from '../../bindings/clickoutsidehandler.js';
14
- import { normalizeToolbarConfig } from '../normalizetoolbarconfig.js';
15
- const toPx = /* #__PURE__ */ toUnit('px');
16
- /**
17
- * The block toolbar plugin.
18
- *
19
- * This plugin provides a button positioned next to the block of content where the selection is anchored.
20
- * Upon clicking the button, a dropdown providing access to editor features shows up, as configured in
21
- * {@link module:core/editor/editorconfig~EditorConfig#blockToolbar}.
22
- *
23
- * By default, the button is displayed next to all elements marked in {@link module:engine/model/schema~ModelSchema}
24
- * as `$block` for which the toolbar provides at least one option.
25
- *
26
- * By default, the button is attached so its right boundary is touching the
27
- * {@link module:engine/view/editableelement~ViewEditableElement}:
28
- *
29
- * ```
30
- * __ |
31
- * | || This is a block of content that the
32
- * ¯¯ | button is attached to. This is a
33
- * | block of content that the button is
34
- * | attached to.
35
- * ```
36
- *
37
- * The position of the button can be adjusted using the CSS `transform` property:
38
- *
39
- * ```css
40
- * .ck-block-toolbar-button {
41
- * transform: translateX( -10px );
42
- * }
43
- * ```
44
- *
45
- * ```
46
- * __ |
47
- * | | | This is a block of content that the
48
- * ¯¯ | button is attached to. This is a
49
- * | block of content that the button is
50
- * | attached to.
51
- * ```
52
- *
53
- * **Note**: If you plan to run the editor in a right–to–left (RTL) language, keep in mind the button
54
- * will be attached to the **right** boundary of the editable area. In that case, make sure the
55
- * CSS position adjustment works properly by adding the following styles:
56
- *
57
- * ```css
58
- * .ck[dir="rtl"] .ck-block-toolbar-button {
59
- * transform: translateX( 10px );
60
- * }
61
- * ```
62
- */
63
- export class BlockToolbar extends Plugin {
64
- /**
65
- * The toolbar view.
66
- */
67
- toolbarView;
68
- /**
69
- * The balloon panel view, containing the {@link #toolbarView}.
70
- */
71
- panelView;
72
- /**
73
- * The button view that opens the {@link #toolbarView}.
74
- */
75
- buttonView;
76
- /**
77
- * An instance of the resize observer that allows to respond to changes in editable's geometry
78
- * so the toolbar can stay within its boundaries (and group toolbar items that do not fit).
79
- *
80
- * **Note**: Used only when `shouldNotGroupWhenFull` was **not** set in the
81
- * {@link module:core/editor/editorconfig~EditorConfig#blockToolbar configuration}.
82
- */
83
- _resizeObserver = null;
84
- /**
85
- * A cached and normalized `config.blockToolbar` object.
86
- */
87
- _blockToolbarConfig;
88
- /**
89
- * @inheritDoc
90
- */
91
- static get pluginName() {
92
- return 'BlockToolbar';
93
- }
94
- /**
95
- * @inheritDoc
96
- */
97
- static get isOfficialPlugin() {
98
- return true;
99
- }
100
- /**
101
- * @inheritDoc
102
- */
103
- constructor(editor) {
104
- super(editor);
105
- this._blockToolbarConfig = normalizeToolbarConfig(this.editor.config.get('blockToolbar'));
106
- this.toolbarView = this._createToolbarView();
107
- this.panelView = this._createPanelView();
108
- this.buttonView = this._createButtonView();
109
- // Close the #panelView upon clicking outside of the plugin UI.
110
- clickOutsideHandler({
111
- emitter: this.panelView,
112
- contextElements: [this.panelView.element, this.buttonView.element],
113
- activator: () => this.panelView.isVisible,
114
- callback: () => this._hidePanel()
115
- });
116
- }
117
- /**
118
- * @inheritDoc
119
- */
120
- init() {
121
- const editor = this.editor;
122
- const t = editor.t;
123
- const editBlockText = t('Click to edit block');
124
- const dragToMoveText = t('Drag to move');
125
- const editBlockLabel = t('Edit block');
126
- const isDragDropBlockToolbarPluginLoaded = editor.plugins.has('DragDropBlockToolbar');
127
- const label = isDragDropBlockToolbarPluginLoaded ? `${editBlockText}\n${dragToMoveText}` : editBlockLabel;
128
- this.buttonView.label = label;
129
- if (isDragDropBlockToolbarPluginLoaded) {
130
- this.buttonView.element.dataset.ckeTooltipClass = 'ck-tooltip_multi-line';
131
- }
132
- // Hides panel on a direct selection change.
133
- this.listenTo(editor.model.document.selection, 'change:range', (evt, data) => {
134
- if (data.directChange) {
135
- this._hidePanel();
136
- }
137
- });
138
- this.listenTo(editor.ui, 'update', () => this._updateButton());
139
- // `low` priority is used because of https://github.com/ckeditor/ckeditor5-core/issues/133.
140
- this.listenTo(editor, 'change:isReadOnly', () => this._updateButton(), { priority: 'low' });
141
- this.listenTo(editor.ui.focusTracker, 'change:isFocused', () => this._updateButton());
142
- // Reposition button on resize.
143
- this.listenTo(this.buttonView, 'change:isVisible', (evt, name, isVisible) => {
144
- if (isVisible) {
145
- // Keep correct position of button and panel on window#resize.
146
- this.buttonView.listenTo(window, 'resize', () => this._updateButton());
147
- }
148
- else {
149
- // Stop repositioning button when is hidden.
150
- this.buttonView.stopListening(window, 'resize');
151
- // Hide the panel when the button disappears.
152
- this._hidePanel();
153
- }
154
- });
155
- // Reposition button on scroll.
156
- this._repositionButtonOnScroll();
157
- // Register the toolbar so it becomes available for Alt+F10 and Esc navigation.
158
- editor.ui.addToolbar(this.toolbarView, {
159
- beforeFocus: () => this._showPanel(),
160
- afterBlur: () => this._hidePanel()
161
- });
162
- // Fills the toolbar with its items based on the configuration.
163
- // This needs to be done after all plugins are ready.
164
- editor.ui.once('ready', () => {
165
- this.toolbarView.fillFromConfig(this._blockToolbarConfig, this.editor.ui.componentFactory);
166
- // Hide panel before executing each button in the panel.
167
- for (const item of this.toolbarView.items) {
168
- item.on('execute', () => this._hidePanel(true), { priority: 'high' });
169
- }
170
- });
171
- }
172
- /**
173
- * @inheritDoc
174
- */
175
- destroy() {
176
- super.destroy();
177
- // Destroy created UI components as they are not automatically destroyed (see ckeditor5#1341).
178
- this.panelView.destroy();
179
- this.buttonView.destroy();
180
- this.toolbarView.destroy();
181
- if (this._resizeObserver) {
182
- this._resizeObserver.destroy();
183
- }
184
- }
185
- /**
186
- * Creates the {@link #toolbarView}.
187
- */
188
- _createToolbarView() {
189
- const t = this.editor.locale.t;
190
- const shouldGroupWhenFull = !this._blockToolbarConfig.shouldNotGroupWhenFull;
191
- const toolbarView = new ToolbarView(this.editor.locale, {
192
- shouldGroupWhenFull,
193
- isFloating: true
194
- });
195
- toolbarView.ariaLabel = t('Editor block content toolbar');
196
- return toolbarView;
197
- }
198
- /**
199
- * Creates the {@link #panelView}.
200
- */
201
- _createPanelView() {
202
- const editor = this.editor;
203
- const panelView = new BalloonPanelView(editor.locale);
204
- panelView.content.add(this.toolbarView);
205
- panelView.class = 'ck-toolbar-container';
206
- editor.ui.view.body.add(panelView);
207
- // Close #panelView on `Esc` press.
208
- this.toolbarView.keystrokes.set('Esc', (evt, cancel) => {
209
- this._hidePanel(true);
210
- cancel();
211
- });
212
- return panelView;
213
- }
214
- /**
215
- * Creates the {@link #buttonView}.
216
- */
217
- _createButtonView() {
218
- const editor = this.editor;
219
- const t = editor.t;
220
- const buttonView = new BlockButtonView(editor.locale);
221
- const iconFromConfig = this._blockToolbarConfig.icon;
222
- const icon = NESTED_TOOLBAR_ICONS[iconFromConfig] || iconFromConfig || NESTED_TOOLBAR_ICONS.dragIndicator;
223
- buttonView.set({
224
- label: t('Edit block'),
225
- icon,
226
- withText: false
227
- });
228
- // Bind the panelView observable properties to the buttonView.
229
- buttonView.bind('isOn').to(this.panelView, 'isVisible');
230
- buttonView.bind('tooltip').to(this.panelView, 'isVisible', isVisible => !isVisible);
231
- // Toggle the panelView upon buttonView#execute.
232
- this.listenTo(buttonView, 'execute', () => {
233
- if (!this.panelView.isVisible) {
234
- this._showPanel();
235
- }
236
- else {
237
- this._hidePanel(true);
238
- }
239
- });
240
- // Hide the panelView when the buttonView is disabled. `isEnabled` flag might be changed when
241
- // user scrolls the viewport and the button is no longer visible. In such case, the panel should be hidden
242
- // otherwise it will be displayed in the wrong place.
243
- this.listenTo(buttonView, 'change:isEnabled', (evt, name, isEnabled) => {
244
- if (!isEnabled && this.panelView.isVisible) {
245
- this._hidePanel(false);
246
- }
247
- });
248
- editor.ui.view.body.add(buttonView);
249
- return buttonView;
250
- }
251
- /**
252
- * Shows or hides the button.
253
- * When all the conditions for displaying the button are matched, it shows the button. Hides otherwise.
254
- */
255
- _updateButton() {
256
- const editor = this.editor;
257
- const model = editor.model;
258
- const view = editor.editing.view;
259
- // Hides the button when the editor is not focused.
260
- if (!editor.ui.focusTracker.isFocused) {
261
- this._hideButton();
262
- return;
263
- }
264
- // Hides the button when the selection is in non-editable place.
265
- if (!editor.model.canEditAt(editor.model.document.selection)) {
266
- this._hideButton();
267
- return;
268
- }
269
- // Get the first selected block, button will be attached to this element.
270
- const modelTarget = Array.from(model.document.selection.getSelectedBlocks())[0];
271
- // Hides the button when there is no enabled item in toolbar for the current block element.
272
- if (!modelTarget || Array.from(this.toolbarView.items).every((item) => !item.isEnabled)) {
273
- this._hideButton();
274
- return;
275
- }
276
- // Get DOM target element.
277
- const domTarget = view.domConverter.mapViewToDom(editor.editing.mapper.toViewElement(modelTarget));
278
- // Show block button.
279
- this.buttonView.isVisible = true;
280
- // Make sure that the block toolbar panel is resized properly.
281
- this._setupToolbarResize();
282
- // Attach block button to target DOM element.
283
- this._attachButtonToElement(domTarget);
284
- // When panel is opened then refresh it position to be properly aligned with block button.
285
- if (this.panelView.isVisible) {
286
- this._showPanel();
287
- }
288
- }
289
- /**
290
- * Hides the button.
291
- */
292
- _hideButton() {
293
- this.buttonView.isVisible = false;
294
- }
295
- /**
296
- * Shows the {@link #toolbarView} attached to the {@link #buttonView}.
297
- * If the toolbar is already visible, then it simply repositions it.
298
- */
299
- _showPanel() {
300
- // Usually, the only way to show the toolbar is by pressing the block button. It makes it impossible for
301
- // the toolbar to show up when the button is invisible (feature does not make sense for the selection then).
302
- // The toolbar navigation using Alt+F10 does not access the button but shows the panel directly using this method.
303
- // So we need to check whether this is possible first.
304
- if (!this.buttonView.isVisible) {
305
- return;
306
- }
307
- const wasVisible = this.panelView.isVisible;
308
- // So here's the thing: If there was no initial panelView#show() or these two were in different order, the toolbar
309
- // positioning will break in RTL editors. Weird, right? What you show know is that the toolbar
310
- // grouping works thanks to:
311
- //
312
- // * the ResizeObserver, which kicks in as soon as the toolbar shows up in DOM (becomes visible again).
313
- // * the observable ToolbarView#maxWidth, which triggers re-grouping when changed.
314
- //
315
- // Here are the possible scenarios:
316
- //
317
- // 1. (WRONG ❌) If the #maxWidth is set when the toolbar is invisible, it won't affect item grouping (no DOMRects, no grouping).
318
- // Then, when panelView.pin() is called, the position of the toolbar will be calculated for the old
319
- // items grouping state, and when finally ResizeObserver kicks in (hey, the toolbar is visible now, right?)
320
- // it will group/ungroup some items and the length of the toolbar will change. But since in RTL the toolbar
321
- // is attached on the right side and the positioning uses CSS "left", it will result in the toolbar shifting
322
- // to the left and being displayed in the wrong place.
323
- // 2. (WRONG ❌) If the panelView.pin() is called first and #maxWidth set next, then basically the story repeats. The balloon
324
- // calculates the position for the old toolbar grouping state, then the toolbar re-groups items and because
325
- // it is positioned using CSS "left" it will move.
326
- // 3. (RIGHT ✅) We show the panel first (the toolbar does re-grouping but it does not matter), then the #maxWidth
327
- // is set allowing the toolbar to re-group again and finally panelView.pin() does the positioning when the
328
- // items grouping state is stable and final.
329
- //
330
- // https://github.com/ckeditor/ckeditor5/issues/6449, https://github.com/ckeditor/ckeditor5/issues/6575
331
- this.panelView.show();
332
- const editableElement = this._getSelectedEditableElement();
333
- this.toolbarView.maxWidth = this._getToolbarMaxWidth(editableElement);
334
- this.panelView.pin({
335
- target: this.buttonView.element,
336
- limiter: editableElement
337
- });
338
- if (!wasVisible) {
339
- this.toolbarView.items.get(0).focus();
340
- }
341
- }
342
- /**
343
- * Returns currently selected editable, based on the model selection.
344
- */
345
- _getSelectedEditableElement() {
346
- const selectedModelRootName = this.editor.model.document.selection.getFirstRange().root.rootName;
347
- return this.editor.ui.getEditableElement(selectedModelRootName);
348
- }
349
- /**
350
- * Hides the {@link #toolbarView}.
351
- *
352
- * @param focusEditable When `true`, the editable will be focused after hiding the panel.
353
- */
354
- _hidePanel(focusEditable) {
355
- this.panelView.isVisible = false;
356
- if (focusEditable) {
357
- this.editor.editing.view.focus();
358
- }
359
- }
360
- /**
361
- * Repositions the button on scroll.
362
- */
363
- _repositionButtonOnScroll() {
364
- const { buttonView } = this;
365
- let pendingAnimationFrame = false;
366
- // Reposition the button on scroll, but do it only once per animation frame to avoid performance issues.
367
- const repositionOnScroll = (evt, domEvt) => {
368
- if (pendingAnimationFrame) {
369
- return;
370
- }
371
- // It makes no sense to reposition the button when the user scrolls the dropdown or any other
372
- // nested scrollable element. The button should be repositioned only when the user scrolls the
373
- // editable or any other scrollable parent of the editable. Leaving it as it is buggy on Chrome
374
- // where scrolling nested scrollables is not properly handled.
375
- // See more: https://github.com/ckeditor/ckeditor5/issues/17067
376
- const editableElement = this._getSelectedEditableElement();
377
- if (domEvt.target !== global.document &&
378
- !getAncestors(editableElement).includes(domEvt.target)) {
379
- return;
380
- }
381
- pendingAnimationFrame = true;
382
- global.window.requestAnimationFrame(() => {
383
- this._updateButton();
384
- pendingAnimationFrame = false;
385
- });
386
- };
387
- // Watch scroll event only when the button is visible, it prevents attaching the scroll event listener
388
- // to the document when the button is not visible.
389
- buttonView.on('change:isVisible', (evt, name, isVisible) => {
390
- if (isVisible) {
391
- buttonView.listenTo(global.document, 'scroll', repositionOnScroll, {
392
- useCapture: true,
393
- usePassive: true
394
- });
395
- }
396
- else {
397
- buttonView.stopListening(global.document, 'scroll', repositionOnScroll);
398
- }
399
- });
400
- }
401
- /**
402
- * Attaches the {@link #buttonView} to the target block of content.
403
- *
404
- * @param targetElement Target element.
405
- */
406
- _attachButtonToElement(targetElement) {
407
- const buttonElement = this.buttonView.element;
408
- const editableElement = this._getSelectedEditableElement();
409
- const contentStyles = window.getComputedStyle(targetElement);
410
- const editableRect = new Rect(editableElement);
411
- const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);
412
- // When line height is not an integer then treat it as "normal".
413
- // MDN says that 'normal' == ~1.2 on desktop browsers.
414
- const contentLineHeight = parseInt(contentStyles.lineHeight, 10) || parseInt(contentStyles.fontSize, 10) * 1.2;
415
- const buttonRect = new Rect(buttonElement);
416
- const contentRect = new Rect(targetElement);
417
- let positionLeft;
418
- if (this.editor.locale.uiLanguageDirection === 'ltr') {
419
- positionLeft = editableRect.left - buttonRect.width;
420
- }
421
- else {
422
- positionLeft = editableRect.right;
423
- }
424
- const positionTop = contentRect.top + contentPaddingTop + (contentLineHeight - buttonRect.height) / 2;
425
- buttonRect.moveTo(positionLeft, positionTop);
426
- const absoluteButtonRect = buttonRect.toAbsoluteRect();
427
- this.buttonView.top = absoluteButtonRect.top;
428
- this.buttonView.left = absoluteButtonRect.left;
429
- this._clipButtonToViewport(this.buttonView, editableElement);
430
- }
431
- /**
432
- * Clips the button element to the viewport of the editable element.
433
- *
434
- * * If the button overflows the editable viewport, it is clipped to make it look like it's cut off by the editable scrollable region.
435
- * * If the button is fully hidden by the top of the editable, it is not clickable but still visible in the DOM.
436
- *
437
- * @param buttonView The button view to clip.
438
- * @param editableElement The editable element whose viewport is used for clipping.
439
- */
440
- _clipButtonToViewport(buttonView, editableElement) {
441
- const absoluteButtonRect = new Rect(buttonView.element);
442
- const scrollViewportRect = new Rect(editableElement).getVisible();
443
- // Sets polygon clip path for the button element, if there is no argument provided, the clip path is removed.
444
- const setButtonClipping = (...paths) => {
445
- buttonView.element.style.clipPath = paths.length ? `polygon(${paths.join(',')})` : '';
446
- };
447
- // Hide the button if it's fully hidden by the top of the editable.
448
- // Note that the button is still visible in the DOM, but it's not clickable. It's because we don't
449
- // want to hide the button completely, as there are plenty of `isVisible` watchers which toggles
450
- // the button scroll listeners.
451
- const markAsHidden = (isHidden) => {
452
- buttonView.isEnabled = !isHidden;
453
- buttonView.element.style.pointerEvents = isHidden ? 'none' : '';
454
- };
455
- if (scrollViewportRect && scrollViewportRect.bottom < absoluteButtonRect.bottom) {
456
- // Calculate the delta between the button bottom and the editable bottom, and clip the button
457
- // to make it look like it's cut off by the editable scrollable region.
458
- const delta = Math.min(absoluteButtonRect.height, absoluteButtonRect.bottom - scrollViewportRect.bottom);
459
- markAsHidden(delta >= absoluteButtonRect.height);
460
- setButtonClipping('0 0', '100% 0', `100% calc(100% - ${toPx(delta)})`, `0 calc(100% - ${toPx(delta)}`);
461
- }
462
- else if (scrollViewportRect && scrollViewportRect.top > absoluteButtonRect.top) {
463
- // Calculate the delta between the button top and the editable top, and clip the button
464
- // to make it look like it's cut off by the editable scrollable region.
465
- const delta = Math.min(absoluteButtonRect.height, scrollViewportRect.top - absoluteButtonRect.top);
466
- markAsHidden(delta >= absoluteButtonRect.height);
467
- setButtonClipping(`0 ${toPx(delta)}`, `100% ${toPx(delta)}`, '100% 100%', '0 100%');
468
- }
469
- else {
470
- // Reset the clip path if button is fully visible.
471
- markAsHidden(false);
472
- setButtonClipping();
473
- }
474
- }
475
- /**
476
- * Creates a resize observer that observes selected editable and resizes the toolbar panel accordingly.
477
- */
478
- _setupToolbarResize() {
479
- const editableElement = this._getSelectedEditableElement();
480
- // Do this only if the automatic grouping is turned on.
481
- if (!this._blockToolbarConfig.shouldNotGroupWhenFull) {
482
- // If resize observer is attached to a different editable than currently selected editable, re-attach it.
483
- if (this._resizeObserver && this._resizeObserver.element !== editableElement) {
484
- this._resizeObserver.destroy();
485
- this._resizeObserver = null;
486
- }
487
- if (!this._resizeObserver) {
488
- this._resizeObserver = new ResizeObserver(editableElement, () => {
489
- this.toolbarView.maxWidth = this._getToolbarMaxWidth(editableElement);
490
- });
491
- }
492
- }
493
- }
494
- /**
495
- * Gets the {@link #toolbarView} max-width, based on given `editableElement` width plus the distance between the farthest
496
- * edge of the {@link #buttonView} and the editable.
497
- *
498
- * @returns A maximum width that toolbar can have, in pixels.
499
- */
500
- _getToolbarMaxWidth(editableElement) {
501
- const editableRect = new Rect(editableElement);
502
- const buttonRect = new Rect(this.buttonView.element);
503
- const isRTL = this.editor.locale.uiLanguageDirection === 'rtl';
504
- const offset = isRTL ? (buttonRect.left - editableRect.right) + buttonRect.width : editableRect.left - buttonRect.left;
505
- return toPx(editableRect.width + offset);
506
- }
507
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module ui/toolbar/normalizetoolbarconfig
7
- */
8
- /**
9
- * Normalizes the toolbar configuration (`config.toolbar`), which:
10
- *
11
- * * may be defined as an `Array`:
12
- *
13
- * ```
14
- * toolbar: [ 'heading', 'bold', 'italic', 'link', ... ]
15
- * ```
16
- *
17
- * * or an `Object`:
18
- *
19
- * ```
20
- * toolbar: {
21
- * items: [ 'heading', 'bold', 'italic', 'link', ... ],
22
- * removeItems: [ 'bold' ],
23
- * ...
24
- * }
25
- * ```
26
- *
27
- * * or may not be defined at all (`undefined`)
28
- *
29
- * and returns it in the object form.
30
- *
31
- * @param config The value of `config.toolbar`.
32
- * @returns A normalized toolbar config object.
33
- */
34
- export function normalizeToolbarConfig(config) {
35
- if (Array.isArray(config)) {
36
- return {
37
- items: config,
38
- removeItems: []
39
- };
40
- }
41
- const predefinedConfigOptions = {
42
- items: [],
43
- removeItems: []
44
- };
45
- if (!config) {
46
- return predefinedConfigOptions;
47
- }
48
- return {
49
- ...predefinedConfigOptions,
50
- ...config
51
- };
52
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module ui/toolbar/toolbarlinebreakview
7
- */
8
- import { View } from '../view.js';
9
- /**
10
- * The toolbar line break view class.
11
- */
12
- export class ToolbarLineBreakView extends View {
13
- /**
14
- * @inheritDoc
15
- */
16
- constructor(locale) {
17
- super(locale);
18
- this.setTemplate({
19
- tag: 'span',
20
- attributes: {
21
- class: [
22
- 'ck',
23
- 'ck-toolbar__line-break'
24
- ]
25
- }
26
- });
27
- }
28
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module ui/toolbar/toolbarseparatorview
7
- */
8
- import { View } from '../view.js';
9
- /**
10
- * The toolbar separator view class.
11
- */
12
- export class ToolbarSeparatorView extends View {
13
- /**
14
- * @inheritDoc
15
- */
16
- constructor(locale) {
17
- super(locale);
18
- this.setTemplate({
19
- tag: 'span',
20
- attributes: {
21
- class: [
22
- 'ck',
23
- 'ck-toolbar__separator'
24
- ]
25
- }
26
- });
27
- }
28
- }