@ckeditor/ckeditor5-fullscreen 47.6.1-alpha.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 (175) hide show
  1. package/ckeditor5-metadata.json +2 -2
  2. package/{src → dist}/fullscreen.d.ts +1 -1
  3. package/{src → dist}/fullscreencommand.d.ts +2 -2
  4. package/{src → dist}/fullscreenediting.d.ts +1 -1
  5. package/{src → dist}/fullscreenui.d.ts +1 -1
  6. package/{src → dist}/handlers/abstracteditorhandler.d.ts +2 -2
  7. package/dist/index-editor.css +153 -154
  8. package/dist/index.css +150 -191
  9. package/dist/index.css.map +1 -1
  10. package/dist/index.js +2 -3
  11. package/dist/index.js.map +1 -1
  12. package/package.json +24 -48
  13. package/build/fullscreen.js +0 -5
  14. package/build/translations/af.js +0 -1
  15. package/build/translations/ar.js +0 -1
  16. package/build/translations/ast.js +0 -1
  17. package/build/translations/az.js +0 -1
  18. package/build/translations/be.js +0 -1
  19. package/build/translations/bg.js +0 -1
  20. package/build/translations/bn.js +0 -1
  21. package/build/translations/bs.js +0 -1
  22. package/build/translations/ca.js +0 -1
  23. package/build/translations/cs.js +0 -1
  24. package/build/translations/da.js +0 -1
  25. package/build/translations/de-ch.js +0 -1
  26. package/build/translations/de.js +0 -1
  27. package/build/translations/el.js +0 -1
  28. package/build/translations/en-au.js +0 -1
  29. package/build/translations/en-gb.js +0 -1
  30. package/build/translations/eo.js +0 -1
  31. package/build/translations/es-co.js +0 -1
  32. package/build/translations/es.js +0 -1
  33. package/build/translations/et.js +0 -1
  34. package/build/translations/eu.js +0 -1
  35. package/build/translations/fa.js +0 -1
  36. package/build/translations/fi.js +0 -1
  37. package/build/translations/fr.js +0 -1
  38. package/build/translations/gl.js +0 -1
  39. package/build/translations/gu.js +0 -1
  40. package/build/translations/he.js +0 -1
  41. package/build/translations/hi.js +0 -1
  42. package/build/translations/hr.js +0 -1
  43. package/build/translations/hu.js +0 -1
  44. package/build/translations/hy.js +0 -1
  45. package/build/translations/id.js +0 -1
  46. package/build/translations/it.js +0 -1
  47. package/build/translations/ja.js +0 -1
  48. package/build/translations/jv.js +0 -1
  49. package/build/translations/kk.js +0 -1
  50. package/build/translations/km.js +0 -1
  51. package/build/translations/kn.js +0 -1
  52. package/build/translations/ko.js +0 -1
  53. package/build/translations/ku.js +0 -1
  54. package/build/translations/lt.js +0 -1
  55. package/build/translations/lv.js +0 -1
  56. package/build/translations/ms.js +0 -1
  57. package/build/translations/nb.js +0 -1
  58. package/build/translations/ne.js +0 -1
  59. package/build/translations/nl.js +0 -1
  60. package/build/translations/no.js +0 -1
  61. package/build/translations/oc.js +0 -1
  62. package/build/translations/pl.js +0 -1
  63. package/build/translations/pt-br.js +0 -1
  64. package/build/translations/pt.js +0 -1
  65. package/build/translations/ro.js +0 -1
  66. package/build/translations/ru.js +0 -1
  67. package/build/translations/si.js +0 -1
  68. package/build/translations/sk.js +0 -1
  69. package/build/translations/sl.js +0 -1
  70. package/build/translations/sq.js +0 -1
  71. package/build/translations/sr-latn.js +0 -1
  72. package/build/translations/sr.js +0 -1
  73. package/build/translations/sv.js +0 -1
  74. package/build/translations/th.js +0 -1
  75. package/build/translations/ti.js +0 -1
  76. package/build/translations/tk.js +0 -1
  77. package/build/translations/tr.js +0 -1
  78. package/build/translations/tt.js +0 -1
  79. package/build/translations/ug.js +0 -1
  80. package/build/translations/uk.js +0 -1
  81. package/build/translations/ur.js +0 -1
  82. package/build/translations/uz.js +0 -1
  83. package/build/translations/vi.js +0 -1
  84. package/build/translations/zh-cn.js +0 -1
  85. package/build/translations/zh.js +0 -1
  86. package/lang/contexts.json +0 -11
  87. package/lang/translations/af.po +0 -48
  88. package/lang/translations/ar.po +0 -48
  89. package/lang/translations/ast.po +0 -48
  90. package/lang/translations/az.po +0 -48
  91. package/lang/translations/be.po +0 -48
  92. package/lang/translations/bg.po +0 -48
  93. package/lang/translations/bn.po +0 -48
  94. package/lang/translations/bs.po +0 -48
  95. package/lang/translations/ca.po +0 -48
  96. package/lang/translations/cs.po +0 -48
  97. package/lang/translations/da.po +0 -48
  98. package/lang/translations/de-ch.po +0 -48
  99. package/lang/translations/de.po +0 -48
  100. package/lang/translations/el.po +0 -48
  101. package/lang/translations/en-au.po +0 -48
  102. package/lang/translations/en-gb.po +0 -48
  103. package/lang/translations/en.po +0 -48
  104. package/lang/translations/eo.po +0 -48
  105. package/lang/translations/es-co.po +0 -48
  106. package/lang/translations/es.po +0 -48
  107. package/lang/translations/et.po +0 -48
  108. package/lang/translations/eu.po +0 -48
  109. package/lang/translations/fa.po +0 -48
  110. package/lang/translations/fi.po +0 -48
  111. package/lang/translations/fr.po +0 -48
  112. package/lang/translations/gl.po +0 -48
  113. package/lang/translations/gu.po +0 -48
  114. package/lang/translations/he.po +0 -48
  115. package/lang/translations/hi.po +0 -48
  116. package/lang/translations/hr.po +0 -48
  117. package/lang/translations/hu.po +0 -48
  118. package/lang/translations/hy.po +0 -48
  119. package/lang/translations/id.po +0 -48
  120. package/lang/translations/it.po +0 -48
  121. package/lang/translations/ja.po +0 -48
  122. package/lang/translations/jv.po +0 -48
  123. package/lang/translations/kk.po +0 -48
  124. package/lang/translations/km.po +0 -48
  125. package/lang/translations/kn.po +0 -48
  126. package/lang/translations/ko.po +0 -48
  127. package/lang/translations/ku.po +0 -48
  128. package/lang/translations/lt.po +0 -48
  129. package/lang/translations/lv.po +0 -48
  130. package/lang/translations/ms.po +0 -48
  131. package/lang/translations/nb.po +0 -48
  132. package/lang/translations/ne.po +0 -48
  133. package/lang/translations/nl.po +0 -48
  134. package/lang/translations/no.po +0 -48
  135. package/lang/translations/oc.po +0 -48
  136. package/lang/translations/pl.po +0 -48
  137. package/lang/translations/pt-br.po +0 -48
  138. package/lang/translations/pt.po +0 -48
  139. package/lang/translations/ro.po +0 -48
  140. package/lang/translations/ru.po +0 -48
  141. package/lang/translations/si.po +0 -48
  142. package/lang/translations/sk.po +0 -48
  143. package/lang/translations/sl.po +0 -48
  144. package/lang/translations/sq.po +0 -48
  145. package/lang/translations/sr-latn.po +0 -48
  146. package/lang/translations/sr.po +0 -48
  147. package/lang/translations/sv.po +0 -48
  148. package/lang/translations/th.po +0 -48
  149. package/lang/translations/ti.po +0 -48
  150. package/lang/translations/tk.po +0 -48
  151. package/lang/translations/tr.po +0 -48
  152. package/lang/translations/tt.po +0 -48
  153. package/lang/translations/ug.po +0 -48
  154. package/lang/translations/uk.po +0 -48
  155. package/lang/translations/ur.po +0 -48
  156. package/lang/translations/uz.po +0 -48
  157. package/lang/translations/vi.po +0 -48
  158. package/lang/translations/zh-cn.po +0 -48
  159. package/lang/translations/zh.po +0 -48
  160. package/src/augmentation.js +0 -5
  161. package/src/fullscreen.js +0 -33
  162. package/src/fullscreencommand.js +0 -92
  163. package/src/fullscreenconfig.js +0 -5
  164. package/src/fullscreenediting.js +0 -69
  165. package/src/fullscreenui.js +0 -85
  166. package/src/handlers/abstracteditorhandler.js +0 -904
  167. package/src/handlers/classiceditorhandler.js +0 -60
  168. package/src/handlers/decouplededitorhandler.js +0 -38
  169. package/src/index.js +0 -15
  170. package/theme/fullscreen.css +0 -283
  171. /package/{src → dist}/augmentation.d.ts +0 -0
  172. /package/{src → dist}/fullscreenconfig.d.ts +0 -0
  173. /package/{src → dist}/handlers/classiceditorhandler.d.ts +0 -0
  174. /package/{src → dist}/handlers/decouplededitorhandler.d.ts +0 -0
  175. /package/{src → dist}/index.d.ts +0 -0
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: ug\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr ""
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr ""
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr ""
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr ""
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr ""
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr ""
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr ""
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr ""
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr ""
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: uk\n"
11
- "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr "Задіяти повноекранний режим"
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr "Вийти з повноекранного режиму"
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr "Повноекранний режим"
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr "Увімкнути повноекранний режим"
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr "Структура документа"
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr "Підключені користувачі"
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr "Показати ліву бічну панель"
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr "Сховати ліву бічну панель"
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr "Показати/сховати бічну панель"
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: ur\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr ""
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr ""
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr ""
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr ""
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr ""
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr ""
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr ""
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr ""
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr ""
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: uz\n"
11
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr ""
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr ""
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr ""
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr ""
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr ""
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr ""
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr ""
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr ""
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr ""
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: vi\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr "Vào chế độ toàn màn hình"
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr "Thoát chế độ toàn màn hình"
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr "Chế độ toàn màn hình"
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr "Chuyển đổi chế độ toàn màn hình"
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr "Bố cục tài liệu"
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr "Những người dùng đã kết nối"
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr "Hiển thị thanh bên trái"
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr "Ẩn thanh bên trái"
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr "Bật/tắt thanh bên"
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: zh_CN\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr "进入全屏模式"
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr "退出全屏模式"
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr "全屏模式"
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr "切换全屏模式"
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr "文档大纲"
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr "已连接用户"
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr "显示左侧边栏"
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr "隐藏左侧边栏"
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr "切换侧边栏"
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: zh_TW\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Label for a toolbar button that enters the fullscreen when pressed"
15
- msgid "Enter fullscreen mode"
16
- msgstr "進入全螢幕模式"
17
-
18
- msgctxt "Label for a toolbar button that leaves the fullscreen when pressed"
19
- msgid "Leave fullscreen mode"
20
- msgstr "退出全螢幕模式"
21
-
22
- msgctxt "Label for a menu bar button that toggles fullscreen mode"
23
- msgid "Fullscreen mode"
24
- msgstr "全螢幕模式"
25
-
26
- msgctxt "Keystroke description for assistive technologies: keystroke for toggling a fullscreen mode."
27
- msgid "Toggle fullscreen mode"
28
- msgstr "切換全螢幕模式"
29
-
30
- msgctxt "Label for a sidebar header that contains a document outline"
31
- msgid "Document outline"
32
- msgstr "文件大綱"
33
-
34
- msgctxt "Label for a sidebar header that contains a list of connected users"
35
- msgid "Connected users"
36
- msgstr "已連線使用者"
37
-
38
- msgctxt "Tooltip for a button that shows the left sidebar"
39
- msgid "Show left sidebar"
40
- msgstr "顯示左側邊欄"
41
-
42
- msgctxt "Tooltip for a button that hides the left sidebar"
43
- msgid "Hide left sidebar"
44
- msgstr "隱藏左側邊欄"
45
-
46
- msgctxt "Label for a button that toggles the left sidebar"
47
- msgid "Toggle sidebar"
48
- msgstr "切換側邊欄"
@@ -1,5 +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
- export {};
package/src/fullscreen.js DELETED
@@ -1,33 +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 fullscreen/fullscreen
7
- */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { FullscreenEditing } from './fullscreenediting.js';
10
- import { FullscreenUI } from './fullscreenui.js';
11
- /**
12
- * The fullscreen mode feature.
13
- */
14
- export class Fullscreen extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get requires() {
19
- return [FullscreenEditing, FullscreenUI];
20
- }
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName() {
25
- return 'Fullscreen';
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isOfficialPlugin() {
31
- return true;
32
- }
33
- }
@@ -1,92 +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 fullscreen/fullscreencommand
7
- */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { FullscreenAbstractEditorHandler } from './handlers/abstracteditorhandler.js';
10
- import { FullscreenClassicEditorHandler } from './handlers/classiceditorhandler.js';
11
- import { FullscreenDecoupledEditorHandler } from './handlers/decouplededitorhandler.js';
12
- /**
13
- * A command toggling the fullscreen mode.
14
- */
15
- export class FullscreenCommand extends Command {
16
- /**
17
- * Specialized class handling the fullscreen mode toggling for a specific editor type.
18
- *
19
- * If you want to add support for a new editor type (for now, only Classic and Decoupled editors are handled),
20
- * create a custom handler that extends `FullscreenAbstractEditorHandler` and replace `fullscreenHandler` with it after
21
- * editor initialization:
22
- *
23
- * ```ts
24
- * // See the details of how to implement a custom handler in the `FullscreenAbstractEditorHandler` class API docs.
25
- * class CustomEditorHandler extends FullscreenAbstractEditorHandler {}
26
- *
27
- * CustomEditorClass.create( document.querySelector( '#editor' ), {} )
28
- * .then( ( editor ) => {
29
- * editor.commands.get( 'toggleFullscreen' ).fullscreenHandler = new CustomEditorHandler( editor );
30
- * } );
31
- * ```
32
- */
33
- fullscreenHandler;
34
- /**
35
- * @inheritDoc
36
- */
37
- constructor(editor) {
38
- super(editor);
39
- this.affectsData = false;
40
- this.isEnabled = true;
41
- this.value = false;
42
- // Choose the appropriate handler based on the editor type.
43
- // Currently only `ClassicEditor` and `DecoupledEditor` are supported. For other editor types, you should create a custom handler
44
- // that extends `FullscreenAbstractEditorHandler` and replace `fullscreenHandler` with it.
45
- if (isClassicEditor(editor)) {
46
- this.fullscreenHandler = new FullscreenClassicEditorHandler(editor);
47
- }
48
- else if (isDecoupledEditor(editor)) {
49
- this.fullscreenHandler = new FullscreenDecoupledEditorHandler(editor);
50
- }
51
- else {
52
- this.fullscreenHandler = new FullscreenAbstractEditorHandler(editor);
53
- }
54
- }
55
- /**
56
- * Toggles the fullscreen mode.
57
- */
58
- execute() {
59
- if (this.value) {
60
- this._disableFullscreenMode();
61
- }
62
- else {
63
- this._enableFullscreenMode();
64
- }
65
- }
66
- /**
67
- * Enables the fullscreen mode.
68
- */
69
- _enableFullscreenMode() {
70
- this.fullscreenHandler.enable();
71
- this.value = true;
72
- }
73
- /**
74
- * Disables the fullscreen mode.
75
- */
76
- _disableFullscreenMode() {
77
- this.fullscreenHandler.disable();
78
- this.value = false;
79
- }
80
- }
81
- /**
82
- * Classic editor typeguard.
83
- */
84
- function isClassicEditor(editor) {
85
- return editor.constructor.editorName === 'ClassicEditor';
86
- }
87
- /**
88
- * Decoupled editor typeguard.
89
- */
90
- function isDecoupledEditor(editor) {
91
- return editor.constructor.editorName === 'DecoupledEditor';
92
- }
@@ -1,5 +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
- export {};
@@ -1,69 +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 fullscreen/fullscreenediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { env } from 'ckeditor5/src/utils.js';
10
- import { FullscreenCommand } from './fullscreencommand.js';
11
- /**
12
- * A plugin that registers the fullscreen mode command.
13
- */
14
- export class FullscreenEditing extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get pluginName() {
19
- return 'FullscreenEditing';
20
- }
21
- /**
22
- * @inheritDoc
23
- */
24
- static get isOfficialPlugin() {
25
- return true;
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- constructor(editor) {
31
- super(editor);
32
- editor.config.define('fullscreen.menuBar.isVisible', true);
33
- // By default, toolbar should behave the same way in fullscreen mode as in normal mode.
34
- // This means that the toolbar buttons should be grouped when the toolbar is full.
35
- editor.config.define('fullscreen.toolbar.shouldNotGroupWhenFull', editor.config.get('toolbar.shouldNotGroupWhenFull') === true);
36
- }
37
- /**
38
- * @inheritDoc
39
- */
40
- init() {
41
- this.editor.commands.add('toggleFullscreen', new FullscreenCommand(this.editor));
42
- const t = this.editor.locale.t;
43
- // Set the Ctrl+Shift+F keystroke.
44
- this.editor.keystrokes.set('Ctrl+Shift+F', (evt, cancel) => {
45
- this.editor.execute('toggleFullscreen');
46
- // On non-Chromium browsers, the editor view and toolbar are not blurred properly after moving the editable,
47
- // even though the `document.activeElement` is changed. Hence we need to blur them manually.
48
- // Fixes https://github.com/ckeditor/ckeditor5/issues/18250 and https://github.com/ckeditor/ckeditor5/issues/18247.
49
- if (!env.isBlink) {
50
- this.editor.editing.view.document.isFocused = false;
51
- this.editor.ui.view.toolbar.focusTracker.focusedElement = null;
52
- }
53
- // The order of scroll and focus is not important here.
54
- this.editor.editing.view.scrollToTheSelection();
55
- this.editor.editing.view.focus();
56
- cancel();
57
- });
58
- // Add the information about the keystroke to the accessibility database.
59
- this.editor.accessibility.addKeystrokeInfos({
60
- keystrokes: [
61
- {
62
- label: t('Toggle fullscreen mode'),
63
- keystroke: 'CTRL+SHIFT+F'
64
- }
65
- ],
66
- categoryId: 'navigation'
67
- });
68
- }
69
- }
@@ -1,85 +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 fullscreen/fullscreenui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
- import { IconFullscreenEnter, IconFullscreenLeave } from 'ckeditor5/src/icons.js';
11
- import { env } from 'ckeditor5/src/utils.js';
12
- import { FullscreenEditing } from './fullscreenediting.js';
13
- import '../theme/fullscreen.css';
14
- const COMMAND_NAME = 'toggleFullscreen';
15
- /**
16
- * A plugin registering the fullscreen mode buttons.
17
- */
18
- export class FullscreenUI extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get requires() {
23
- return [FullscreenEditing];
24
- }
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName() {
29
- return 'FullscreenUI';
30
- }
31
- /**
32
- * @inheritDoc
33
- */
34
- static get isOfficialPlugin() {
35
- return true;
36
- }
37
- /**
38
- * @inheritDoc
39
- */
40
- init() {
41
- const editor = this.editor;
42
- editor.ui.componentFactory.add('fullscreen', () => this._createButton(ButtonView));
43
- editor.ui.componentFactory.add('menuBar:fullscreen', () => this._createButton(MenuBarMenuListItemButtonView));
44
- }
45
- /**
46
- * Creates a button that toggles the fullscreen mode.
47
- */
48
- _createButton(ButtonClass) {
49
- const editor = this.editor;
50
- const t = editor.t;
51
- const command = editor.commands.get(COMMAND_NAME);
52
- const view = new ButtonClass(editor.locale);
53
- view.set({
54
- isToggleable: true
55
- });
56
- view.bind('isEnabled').to(command, 'isEnabled');
57
- view.bind('isOn').to(command, 'value');
58
- if ((view instanceof MenuBarMenuListItemButtonView)) {
59
- view.set({
60
- role: 'menuitemcheckbox',
61
- label: t('Fullscreen mode')
62
- });
63
- }
64
- else {
65
- view.bind('icon').to(command, 'value', value => value ? IconFullscreenLeave : IconFullscreenEnter);
66
- view.bind('label').to(command, 'value', value => value ? t('Leave fullscreen mode') : t('Enter fullscreen mode'));
67
- view.set({
68
- tooltip: true
69
- });
70
- }
71
- this.listenTo(view, 'execute', () => {
72
- editor.execute(COMMAND_NAME);
73
- // On non-Chromium browsers, toolbar is not blurred properly after moving the editable,
74
- // even though the `document.activeElement` is changed. Hence we need to blur the view manually.
75
- // Fixes https://github.com/ckeditor/ckeditor5/issues/18250 and https://github.com/ckeditor/ckeditor5/issues/18247.
76
- if (!env.isBlink) {
77
- this.editor.ui.view.toolbar.focusTracker.focusedElement = null;
78
- }
79
- // The order of scroll and focus is not important here.
80
- editor.editing.view.scrollToTheSelection();
81
- editor.editing.view.focus();
82
- });
83
- return view;
84
- }
85
- }