@ckeditor/ckeditor5-link 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 (203) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +6 -6
  3. package/{src → dist}/autolink.d.ts +2 -2
  4. package/dist/index-editor.css +181 -105
  5. package/dist/index.css +169 -151
  6. package/dist/index.css.map +1 -1
  7. package/{src → dist}/index.d.ts +1 -1
  8. package/dist/index.js +8 -8
  9. package/dist/index.js.map +1 -1
  10. package/{src → dist}/link.d.ts +1 -1
  11. package/{src → dist}/linkcommand.d.ts +2 -2
  12. package/{src → dist}/linkconfig.d.ts +1 -1
  13. package/{src → dist}/linkediting.d.ts +3 -3
  14. package/{src → dist}/linkimage.d.ts +1 -1
  15. package/{src → dist}/linkimageediting.d.ts +3 -2
  16. package/{src → dist}/linkimageui.d.ts +3 -2
  17. package/{src → dist}/linkui.d.ts +2 -2
  18. package/{src → dist}/ui/linkbuttonview.d.ts +2 -2
  19. package/{src → dist}/ui/linkformview.d.ts +2 -4
  20. package/{src → dist}/ui/linkpreviewbuttonview.d.ts +2 -2
  21. package/{src → dist}/ui/linkpropertiesview.d.ts +2 -2
  22. package/{src → dist}/ui/linkprovideritemsview.d.ts +2 -2
  23. package/{src → dist}/unlinkcommand.d.ts +1 -1
  24. package/{src → dist}/utils/automaticdecorators.d.ts +2 -2
  25. package/{src → dist}/utils/manualdecorator.d.ts +4 -4
  26. package/{src → dist}/utils.d.ts +2 -2
  27. package/package.json +29 -52
  28. package/build/link.js +0 -5
  29. package/build/translations/af.js +0 -1
  30. package/build/translations/ar.js +0 -1
  31. package/build/translations/ast.js +0 -1
  32. package/build/translations/az.js +0 -1
  33. package/build/translations/be.js +0 -1
  34. package/build/translations/bg.js +0 -1
  35. package/build/translations/bn.js +0 -1
  36. package/build/translations/bs.js +0 -1
  37. package/build/translations/ca.js +0 -1
  38. package/build/translations/cs.js +0 -1
  39. package/build/translations/da.js +0 -1
  40. package/build/translations/de-ch.js +0 -1
  41. package/build/translations/de.js +0 -1
  42. package/build/translations/el.js +0 -1
  43. package/build/translations/en-au.js +0 -1
  44. package/build/translations/en-gb.js +0 -1
  45. package/build/translations/eo.js +0 -1
  46. package/build/translations/es-co.js +0 -1
  47. package/build/translations/es.js +0 -1
  48. package/build/translations/et.js +0 -1
  49. package/build/translations/eu.js +0 -1
  50. package/build/translations/fa.js +0 -1
  51. package/build/translations/fi.js +0 -1
  52. package/build/translations/fr.js +0 -1
  53. package/build/translations/gl.js +0 -1
  54. package/build/translations/gu.js +0 -1
  55. package/build/translations/he.js +0 -1
  56. package/build/translations/hi.js +0 -1
  57. package/build/translations/hr.js +0 -1
  58. package/build/translations/hu.js +0 -1
  59. package/build/translations/hy.js +0 -1
  60. package/build/translations/id.js +0 -1
  61. package/build/translations/it.js +0 -1
  62. package/build/translations/ja.js +0 -1
  63. package/build/translations/jv.js +0 -1
  64. package/build/translations/kk.js +0 -1
  65. package/build/translations/km.js +0 -1
  66. package/build/translations/kn.js +0 -1
  67. package/build/translations/ko.js +0 -1
  68. package/build/translations/ku.js +0 -1
  69. package/build/translations/lt.js +0 -1
  70. package/build/translations/lv.js +0 -1
  71. package/build/translations/ms.js +0 -1
  72. package/build/translations/nb.js +0 -1
  73. package/build/translations/ne.js +0 -1
  74. package/build/translations/nl.js +0 -1
  75. package/build/translations/no.js +0 -1
  76. package/build/translations/oc.js +0 -1
  77. package/build/translations/pl.js +0 -1
  78. package/build/translations/pt-br.js +0 -1
  79. package/build/translations/pt.js +0 -1
  80. package/build/translations/ro.js +0 -1
  81. package/build/translations/ru.js +0 -1
  82. package/build/translations/si.js +0 -1
  83. package/build/translations/sk.js +0 -1
  84. package/build/translations/sl.js +0 -1
  85. package/build/translations/sq.js +0 -1
  86. package/build/translations/sr-latn.js +0 -1
  87. package/build/translations/sr.js +0 -1
  88. package/build/translations/sv.js +0 -1
  89. package/build/translations/th.js +0 -1
  90. package/build/translations/ti.js +0 -1
  91. package/build/translations/tk.js +0 -1
  92. package/build/translations/tr.js +0 -1
  93. package/build/translations/tt.js +0 -1
  94. package/build/translations/ug.js +0 -1
  95. package/build/translations/uk.js +0 -1
  96. package/build/translations/ur.js +0 -1
  97. package/build/translations/uz.js +0 -1
  98. package/build/translations/vi.js +0 -1
  99. package/build/translations/zh-cn.js +0 -1
  100. package/build/translations/zh.js +0 -1
  101. package/lang/contexts.json +0 -16
  102. package/lang/translations/af.po +0 -68
  103. package/lang/translations/ar.po +0 -68
  104. package/lang/translations/ast.po +0 -68
  105. package/lang/translations/az.po +0 -68
  106. package/lang/translations/be.po +0 -68
  107. package/lang/translations/bg.po +0 -68
  108. package/lang/translations/bn.po +0 -70
  109. package/lang/translations/bs.po +0 -68
  110. package/lang/translations/ca.po +0 -68
  111. package/lang/translations/cs.po +0 -68
  112. package/lang/translations/da.po +0 -68
  113. package/lang/translations/de-ch.po +0 -68
  114. package/lang/translations/de.po +0 -68
  115. package/lang/translations/el.po +0 -68
  116. package/lang/translations/en-au.po +0 -68
  117. package/lang/translations/en-gb.po +0 -68
  118. package/lang/translations/en.po +0 -68
  119. package/lang/translations/eo.po +0 -68
  120. package/lang/translations/es-co.po +0 -68
  121. package/lang/translations/es.po +0 -68
  122. package/lang/translations/et.po +0 -68
  123. package/lang/translations/eu.po +0 -68
  124. package/lang/translations/fa.po +0 -68
  125. package/lang/translations/fi.po +0 -68
  126. package/lang/translations/fr.po +0 -68
  127. package/lang/translations/gl.po +0 -68
  128. package/lang/translations/gu.po +0 -68
  129. package/lang/translations/he.po +0 -68
  130. package/lang/translations/hi.po +0 -68
  131. package/lang/translations/hr.po +0 -68
  132. package/lang/translations/hu.po +0 -68
  133. package/lang/translations/hy.po +0 -68
  134. package/lang/translations/id.po +0 -68
  135. package/lang/translations/it.po +0 -68
  136. package/lang/translations/ja.po +0 -68
  137. package/lang/translations/jv.po +0 -68
  138. package/lang/translations/kk.po +0 -68
  139. package/lang/translations/km.po +0 -68
  140. package/lang/translations/kn.po +0 -68
  141. package/lang/translations/ko.po +0 -68
  142. package/lang/translations/ku.po +0 -68
  143. package/lang/translations/lt.po +0 -68
  144. package/lang/translations/lv.po +0 -68
  145. package/lang/translations/ms.po +0 -68
  146. package/lang/translations/nb.po +0 -68
  147. package/lang/translations/ne.po +0 -68
  148. package/lang/translations/nl.po +0 -68
  149. package/lang/translations/no.po +0 -68
  150. package/lang/translations/oc.po +0 -68
  151. package/lang/translations/pl.po +0 -68
  152. package/lang/translations/pt-br.po +0 -68
  153. package/lang/translations/pt.po +0 -68
  154. package/lang/translations/ro.po +0 -68
  155. package/lang/translations/ru.po +0 -68
  156. package/lang/translations/si.po +0 -68
  157. package/lang/translations/sk.po +0 -68
  158. package/lang/translations/sl.po +0 -68
  159. package/lang/translations/sq.po +0 -68
  160. package/lang/translations/sr-latn.po +0 -68
  161. package/lang/translations/sr.po +0 -68
  162. package/lang/translations/sv.po +0 -68
  163. package/lang/translations/th.po +0 -68
  164. package/lang/translations/ti.po +0 -68
  165. package/lang/translations/tk.po +0 -68
  166. package/lang/translations/tr.po +0 -68
  167. package/lang/translations/tt.po +0 -68
  168. package/lang/translations/ug.po +0 -68
  169. package/lang/translations/uk.po +0 -68
  170. package/lang/translations/ur.po +0 -68
  171. package/lang/translations/uz.po +0 -68
  172. package/lang/translations/vi.po +0 -68
  173. package/lang/translations/zh-cn.po +0 -68
  174. package/lang/translations/zh.po +0 -68
  175. package/src/augmentation.js +0 -5
  176. package/src/autolink.js +0 -307
  177. package/src/index.js +0 -25
  178. package/src/link.js +0 -37
  179. package/src/linkcommand.js +0 -431
  180. package/src/linkconfig.js +0 -5
  181. package/src/linkediting.js +0 -402
  182. package/src/linkimage.js +0 -37
  183. package/src/linkimageediting.js +0 -264
  184. package/src/linkimageui.js +0 -102
  185. package/src/linkui.js +0 -1072
  186. package/src/ui/linkbuttonview.js +0 -54
  187. package/src/ui/linkformview.js +0 -302
  188. package/src/ui/linkpreviewbuttonview.js +0 -43
  189. package/src/ui/linkpropertiesview.js +0 -170
  190. package/src/ui/linkprovideritemsview.js +0 -207
  191. package/src/unlinkcommand.js +0 -66
  192. package/src/utils/automaticdecorators.js +0 -181
  193. package/src/utils/conflictingdecorators.js +0 -80
  194. package/src/utils/manualdecorator.js +0 -69
  195. package/src/utils.js +0 -157
  196. package/theme/link.css +0 -10
  197. package/theme/linkform.css +0 -24
  198. package/theme/linkimage.css +0 -16
  199. package/theme/linkproperties.css +0 -4
  200. package/theme/linkprovideritems.css +0 -18
  201. package/theme/linktoolbar.css +0 -12
  202. /package/{src → dist}/augmentation.d.ts +0 -0
  203. /package/{src → dist}/utils/conflictingdecorators.d.ts +0 -0
package/LICENSE.md CHANGED
@@ -18,7 +18,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
18
18
 
19
19
  The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
20
20
 
21
- * es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
21
+ * es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
22
22
  * Regular expression for URL validation - Copyright (c) 2010-2018 Diego Perini.
23
23
 
24
24
  Trademarks
@@ -5,7 +5,7 @@
5
5
  "className": "AutoLink",
6
6
  "description": "Automatically turns plain text links in the document into active URLs as you write. Works for emails, too.",
7
7
  "docs": "features/link.html#autolink-feature",
8
- "path": "src/autolink.js",
8
+ "path": "src/autolink.ts",
9
9
  "requires": [
10
10
  "Link"
11
11
  ]
@@ -15,12 +15,12 @@
15
15
  "className": "Link",
16
16
  "description": "Brings support for inserting hyperlinks into the content and offers the UI to create and edit them.",
17
17
  "docs": "features/link.html",
18
- "path": "src/link.js",
18
+ "path": "src/link.ts",
19
19
  "uiComponents": [
20
20
  {
21
21
  "type": "Button",
22
22
  "name": "link",
23
- "iconPath": "@ckeditor/ckeditor5-icons/theme/icons/link.svg"
23
+ "iconName": "IconLink"
24
24
  }
25
25
  ],
26
26
  "htmlOutput": [
@@ -52,7 +52,7 @@
52
52
  "className": "LinkImage",
53
53
  "description": "Allows adding clickable links to images for creating banners or referrers.",
54
54
  "docs": "features/images/images-linking.html",
55
- "path": "src/linkimage.js",
55
+ "path": "src/linkimage.ts",
56
56
  "requires": [
57
57
  "Link",
58
58
  "ImageBlock"
@@ -61,10 +61,10 @@
61
61
  {
62
62
  "type": "Button",
63
63
  "name": "linkImage",
64
- "iconPath": "@ckeditor/ckeditor5-icons/theme/icons/link.svg",
65
64
  "toolbars": [
66
65
  "image.toolbar"
67
- ]
66
+ ],
67
+ "iconName": "IconLink"
68
68
  }
69
69
  ],
70
70
  "htmlOutput": [
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module link/autolink
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { Delete } from 'ckeditor5/src/typing.js';
8
+ import { Plugin } from '@ckeditor/ckeditor5-core';
9
+ import { Delete } from '@ckeditor/ckeditor5-typing';
10
10
  import { LinkEditing } from './linkediting.js';
11
11
  /**
12
12
  * The autolink plugin.
@@ -2,137 +2,213 @@
2
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
+ .ck .ck-link_selected{
6
+ background:var(--ck-color-link-selected-background);
7
+ }
8
+
9
+ .ck .ck-link_selected span.image-inline{
10
+ outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);
11
+ }
12
+
13
+ .ck .ck-fake-link-selection{
14
+ background:var(--ck-color-link-fake-selection);
15
+ }
16
+
17
+ .ck .ck-fake-link-selection_collapsed{
18
+ border-right:1px solid var(--ck-color-base-text);
19
+ outline:1px solid #ffffff80;
20
+ height:100%;
21
+ margin-right:-1px;
22
+ }
23
+
24
+ :root{
25
+ --ck-link-bookmark-icon-size:calc(var(--ck-icon-size) * .7);
26
+ }
27
+
28
+ .ck.ck-toolbar.ck-link-toolbar > .ck-toolbar__items{
29
+ flex-wrap:nowrap;
30
+ }
31
+
32
+ a.ck.ck-button.ck-link-toolbar__preview{
33
+ padding:0 var(--ck-spacing-medium);
34
+ color:var(--ck-color-link-default);
35
+ cursor:pointer;
36
+ justify-content:center;
37
+ }
38
+
39
+ a.ck.ck-button.ck-link-toolbar__preview .ck.ck-button__label{
40
+ text-overflow:ellipsis;
41
+ max-width:var(--ck-input-width);
42
+ }
43
+
44
+ a.ck.ck-button.ck-link-toolbar__preview, a.ck.ck-button.ck-link-toolbar__preview:hover, a.ck.ck-button.ck-link-toolbar__preview:focus, a.ck.ck-button.ck-link-toolbar__preview:active{
45
+ background:none;
46
+ }
47
+
48
+ a.ck.ck-button.ck-link-toolbar__preview:active{
49
+ box-shadow:none;
50
+ }
51
+
52
+ a.ck.ck-button.ck-link-toolbar__preview:hover, a.ck.ck-button.ck-link-toolbar__preview:focus{
53
+ text-decoration:underline;
54
+ }
55
+
56
+ a.ck.ck-button.ck-link-toolbar__preview.ck-button_with-text .ck.ck-icon.ck-button__icon{
57
+ width:var(--ck-link-bookmark-icon-size);
58
+ height:var(--ck-link-bookmark-icon-size);
59
+ }
60
+
61
+ [dir="ltr"] :is(a.ck.ck-button.ck-link-toolbar__preview.ck-button_with-text .ck.ck-icon.ck-button__icon){
62
+ margin-right:var(--ck-spacing-tiny);
63
+ margin-left:var(--ck-spacing-small);
64
+ }
65
+
66
+ [dir="rtl"] :is(a.ck.ck-button.ck-link-toolbar__preview.ck-button_with-text .ck.ck-icon.ck-button__icon){
67
+ margin-left:var(--ck-spacing-tiny);
68
+ margin-right:var(--ck-spacing-small);
69
+ }
70
+
71
+ a.ck.ck-button.ck-link-toolbar__preview:has(.ck-icon){
72
+ padding-left:var(--ck-spacing-extra-tiny);
73
+ }
74
+
5
75
  .ck.ck-link-toolbar__preview{
6
- display:inline-block;
76
+ display:inline-block;
7
77
  }
8
78
 
9
79
  .ck.ck-link-toolbar__preview .ck-button__label{
10
- overflow:hidden;
11
- }
12
-
13
- .ck.ck-editor__editable figure.image > a::after, .ck.ck-editor__editable a span.image-inline::after{
14
- display:block;
15
- position:absolute;
16
- }
17
-
18
- .ck-vertical-form .ck-button::after{
19
- content:"";
20
- width:0;
21
- position:absolute;
22
- right:-1px;
23
- top:-1px;
24
- bottom:-1px;
25
- z-index:1;
26
- }
27
-
28
- .ck-vertical-form .ck-button:focus::after{
29
- display:none;
30
- }
31
-
32
- @media screen and (max-width: 600px){
33
- .ck.ck-responsive-form .ck-button::after{
34
- content:"";
35
- width:0;
36
- position:absolute;
37
- right:-1px;
38
- top:-1px;
39
- bottom:-1px;
40
- z-index:1;
41
- }
42
-
43
- .ck.ck-responsive-form .ck-button:focus::after{
44
- display:none;
45
- }
46
- }
80
+ overflow:hidden;
81
+ }
47
82
 
48
83
  :root{
49
- --ck-form-default-width:340px;
84
+ --ck-link-image-indicator-icon-size:20;
85
+ --ck-link-image-indicator-icon-is-visible:clamp(0px, 100% - 50px, 1px);
50
86
  }
51
87
 
52
- .ck.ck-form{
53
- padding:0 0 var(--ck-spacing-large);
88
+ :is(.ck.ck-editor__editable figure.image > a, .ck.ck-editor__editable a span.image-inline):after{
89
+ content:"";
90
+ top:min(var(--ck-spacing-medium), 6%);
91
+ right:min(var(--ck-spacing-medium), 6%);
92
+ width:calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
93
+ height:calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
94
+ background-color:#0006;
95
+ background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");
96
+ background-position:center;
97
+ background-repeat:no-repeat;
98
+ background-size:14px;
99
+ border-radius:100%;
100
+ display:block;
101
+ position:absolute;
102
+ overflow:hidden;
54
103
  }
55
104
 
56
- .ck.ck-form.ck-form_default-width{
57
- width:var(--ck-form-default-width);
58
- }
105
+ :root{
106
+ --ck-link-panel-width:340px;
107
+ --ck-link-provider-list-item-text-height:calc(var(--ck-line-height-base) * var(--ck-font-size-base));
108
+ --ck-link-provider-list-item-height:calc(var(--ck-link-provider-list-item-text-height) + var(--ck-spacing-small) + var(--ck-spacing-small));
109
+ }
59
110
 
60
- .ck.ck-form:focus{
61
- outline:none;
62
- }
111
+ @media screen and (width <= 600px){
112
+ :root{
113
+ --ck-link-panel-width:300px;
114
+ }
115
+ }
63
116
 
64
- .ck.ck-form .ck.ck-input-text,
65
- .ck.ck-form .ck.ck-input-number{
66
- min-width:100%;
67
- width:0;
68
- }
117
+ .ck.ck-form.ck-link-form{
118
+ width:var(--ck-link-panel-width);
119
+ padding-bottom:0;
120
+ }
69
121
 
70
- .ck.ck-form .ck.ck-dropdown{
71
- min-width:100%;
72
- }
122
+ @media screen and (width <= 600px){
123
+ .ck.ck-form.ck-link-form.ck-responsive-form .ck-labeled-field-view{
124
+ margin:0;
125
+ }
126
+ }
73
127
 
74
- .ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){
75
- border:1px solid var(--ck-color-base-border);
76
- }
128
+ .ck.ck-form.ck-link-form .ck-link-form__providers-list{
129
+ border-top:1px solid var(--ck-color-base-border);
130
+ flex-direction:column;
131
+ display:flex;
132
+ }
77
133
 
78
- .ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{
79
- width:100%;
80
- }
134
+ .ck.ck-form.ck-link-form .ck-link-form__providers-list:has(.ck-list__item:nth-child(n+5)){
135
+ max-height:calc(var(--ck-link-provider-list-item-height) * 4 + var(--ck-spacing-large) + 1px);
136
+ overflow:auto;
137
+ }
81
138
 
82
- @media screen and (max-width: 600px){
139
+ .ck.ck-form.ck-link-form .ck-link-form__providers-list .ck-link__button{
140
+ padding:var(--ck-spacing-small) var(--ck-spacing-large);
141
+ border-radius:0;
142
+ }
83
143
 
84
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit{
85
- flex-direction:column;
86
- align-items:stretch;
87
- padding:0;
88
- }
89
- }
144
+ .ck.ck-form.ck-link-form .ck-link-form__providers-list .ck-link__button > .ck-button__label{
145
+ text-overflow:ellipsis;
146
+ flex-grow:1;
147
+ overflow:hidden;
148
+ }
90
149
 
91
- @media screen and (max-width: 600px){
150
+ .ck.ck-link-form .ck-link__items:empty{
151
+ display:none;
152
+ }
92
153
 
93
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit > .ck{
94
- margin:var(--ck-spacing-large) var(--ck-spacing-large) 0;
95
- }
96
- }
154
+ :root{
155
+ --ck-link-properties-width:340px;
156
+ }
97
157
 
98
- @media screen and (max-width: 600px){
158
+ @media screen and (width <= 600px){
159
+ :root{
160
+ --ck-link-properties-width:300px;
161
+ }
162
+ }
99
163
 
100
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit .ck-button_with-text{
101
- justify-content:center;
102
- }
103
- }
164
+ .ck.ck-link-properties{
165
+ width:var(--ck-link-properties-width);
166
+ }
104
167
 
105
- @media screen and (max-width: 600px){
168
+ :root{
169
+ --ck-link-providers-width:340px;
170
+ --ck-link-list-view-max-height:240px;
171
+ --ck-link-list-view-icon-size:calc(var(--ck-icon-size) * .8);
172
+ }
106
173
 
107
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_large-bottom-padding{
108
- padding-bottom:var(--ck-spacing-large);
109
- }
110
- }
174
+ @media screen and (width <= 600px){
175
+ :root{
176
+ --ck-link-providers-width:300px;
177
+ }
178
+ }
111
179
 
112
- [dir="ltr"] .ck.ck-form.ck-responsive-form > :not(:first-child){
113
- margin-left:0;
114
- }
180
+ .ck.ck-link-providers{
181
+ width:var(--ck-link-providers-width);
182
+ }
115
183
 
116
- [dir="rtl"] .ck.ck-form.ck-responsive-form > :not(:last-child){
117
- margin-left:0;
118
- }
119
- .ck.ck-link-form .ck-link-form__providers-list{
120
- display:flex;
121
- flex-direction:column;
122
- }
123
- .ck.ck-link-form .ck-link-form__providers-list .ck-link__button > .ck-button__label{
124
- flex-grow:1;
125
- }
126
- .ck.ck-link-form .ck-link__items:empty{
127
- display:none;
128
- }
184
+ .ck.ck-link-providers .ck-form__header__label{
185
+ text-overflow:ellipsis;
186
+ overflow:hidden;
187
+ }
129
188
 
130
189
  .ck.ck-link-providers > .ck-link-providers__list{
131
- overflow-x:hidden;
132
- overflow-y:auto;
133
- overscroll-behavior:contain;
134
- }
190
+ max-height:min(var(--ck-link-list-view-max-height), 40vh);
191
+ overflow:hidden auto;
192
+ }
135
193
 
136
194
  .ck.ck-link-providers > .ck-link-providers__list .ck-button > .ck-icon{
137
- flex-shrink:0;
138
- }
195
+ width:var(--ck-link-list-view-icon-size);
196
+ height:var(--ck-link-list-view-icon-size);
197
+ flex-shrink:0;
198
+ }
199
+
200
+ .ck.ck-link-providers > .ck-link-providers__list .ck-button > .ck-button__label{
201
+ text-overflow:ellipsis;
202
+ white-space:nowrap;
203
+ overflow:hidden;
204
+ }
205
+
206
+ .ck.ck-link-providers > .ck-link-providers__list{
207
+ overscroll-behavior:contain;
208
+ }
209
+
210
+ .ck.ck-link-providers .ck-link__empty-list-info{
211
+ padding:calc(2 * var(--ck-spacing-large)) var(--ck-spacing-medium);
212
+ text-align:center;
213
+ font-style:italic;
214
+ }