@ckeditor/ckeditor5-link 48.8.1-alpha.4 → 49.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.
- package/LICENSE.md +1 -1
- package/dist/augmentation.d.ts +28 -28
- package/dist/autolink.d.ts +74 -74
- package/dist/index-content.css +3 -0
- package/dist/index-content.css.map +1 -0
- package/dist/index-editor.css +170 -161
- package/dist/index-editor.css.map +1 -0
- package/dist/index.css +144 -137
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +31 -29
- package/dist/index.js +3084 -3515
- package/dist/index.js.map +1 -1
- package/dist/link.d.ts +26 -26
- package/dist/linkcommand.d.ts +134 -134
- package/dist/linkconfig.d.ts +313 -313
- package/dist/linkediting.d.ts +87 -88
- package/dist/linkimage.d.ts +25 -26
- package/dist/linkimageediting.d.ts +39 -39
- package/dist/linkimageui.d.ts +41 -41
- package/dist/linkui.d.ts +361 -350
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +5 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +5 -3
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +5 -3
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +5 -3
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +5 -3
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +5 -3
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +5 -3
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +5 -3
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +5 -3
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +5 -3
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +5 -3
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +5 -3
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +5 -3
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +5 -3
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +5 -3
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +5 -3
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +5 -3
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +5 -3
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +5 -3
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +5 -3
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +5 -3
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +5 -3
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +5 -3
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +5 -3
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +5 -3
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +5 -3
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +5 -3
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +5 -3
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +5 -3
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +5 -3
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +5 -3
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +5 -3
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +5 -3
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +5 -3
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +5 -3
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +5 -3
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +5 -3
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +5 -3
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +5 -3
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +5 -3
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +5 -3
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +5 -3
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +5 -3
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +5 -3
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +5 -3
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +5 -3
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +5 -3
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +5 -3
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +5 -3
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +5 -3
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +5 -3
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +5 -3
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +5 -3
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +5 -3
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +5 -3
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +5 -3
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +5 -3
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +5 -3
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +5 -3
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +5 -3
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +5 -3
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +5 -3
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +5 -3
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +5 -3
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +5 -3
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +5 -3
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +5 -3
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +5 -3
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +5 -3
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +5 -3
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +5 -3
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +5 -3
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +5 -3
- package/dist/ui/linkbuttonview.d.ts +27 -27
- package/dist/ui/linkformview.d.ts +159 -141
- package/dist/ui/linkpreviewbuttonview.d.ts +27 -27
- package/dist/ui/linkpropertiesview.d.ts +79 -80
- package/dist/ui/linkprovideritemsview.d.ts +105 -106
- package/dist/unlinkcommand.d.ts +26 -26
- package/dist/utils/automaticdecorators.d.ts +54 -54
- package/dist/utils/conflictingdecorators.d.ts +32 -32
- package/dist/utils/manualdecorator.d.ts +59 -62
- package/dist/utils.d.ts +62 -62
- package/package.json +12 -12
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.
|
|
22
22
|
* Regular expression for URL validation - Copyright (c) 2010-2018 Diego Perini.
|
|
23
23
|
|
|
24
24
|
Trademarks
|
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
import type { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the {@link module:link/link~Link} feature.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:link/linkconfig~LinkConfig}.
|
|
12
|
+
*/
|
|
13
|
+
link?: LinkConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[AutoLink.pluginName]: AutoLink;
|
|
17
|
+
[Link.pluginName]: Link;
|
|
18
|
+
[LinkEditing.pluginName]: LinkEditing;
|
|
19
|
+
[LinkImage.pluginName]: LinkImage;
|
|
20
|
+
[LinkImageEditing.pluginName]: LinkImageEditing;
|
|
21
|
+
[LinkImageUI.pluginName]: LinkImageUI;
|
|
22
|
+
[LinkUI.pluginName]: LinkUI;
|
|
23
|
+
}
|
|
24
|
+
interface CommandsMap {
|
|
25
|
+
link: LinkCommand;
|
|
26
|
+
}
|
|
27
|
+
interface CommandsMap {
|
|
28
|
+
unlink: UnlinkCommand;
|
|
29
|
+
}
|
|
30
30
|
}
|
package/dist/autolink.d.ts
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { Delete } from
|
|
10
|
-
import { LinkEditing } from
|
|
6
|
+
* @module link/autolink
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { Delete } from "@ckeditor/ckeditor5-typing";
|
|
10
|
+
import { LinkEditing } from "./linkediting.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* The autolink plugin.
|
|
13
|
+
*/
|
|
14
14
|
export declare class AutoLink extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get requires(): PluginDependenciesOf<[Delete, LinkEditing]>;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "AutoLink";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static override get isOfficialPlugin(): true;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
init(): void;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
afterInit(): void;
|
|
35
|
+
/**
|
|
36
|
+
* For given position, returns a range that includes the whole link that contains the position.
|
|
37
|
+
*
|
|
38
|
+
* If position is not inside a link, returns `null`.
|
|
39
|
+
*/
|
|
40
|
+
private _expandLinkRange;
|
|
41
|
+
/**
|
|
42
|
+
* Extends the document selection to includes all links that intersects with given `selectedRange`.
|
|
43
|
+
*/
|
|
44
|
+
private _selectEntireLinks;
|
|
45
|
+
/**
|
|
46
|
+
* Enables autolinking on pasting a URL when some content is selected.
|
|
47
|
+
*/
|
|
48
|
+
private _enablePasteLinking;
|
|
49
|
+
/**
|
|
50
|
+
* Enables autolinking on typing.
|
|
51
|
+
*/
|
|
52
|
+
private _enableTypingHandling;
|
|
53
|
+
/**
|
|
54
|
+
* Enables autolinking on the <kbd>Enter</kbd> key.
|
|
55
|
+
*/
|
|
56
|
+
private _enableEnterHandling;
|
|
57
|
+
/**
|
|
58
|
+
* Enables autolinking on the <kbd>Shift</kbd>+<kbd>Enter</kbd> keyboard shortcut.
|
|
59
|
+
*/
|
|
60
|
+
private _enableShiftEnterHandling;
|
|
61
|
+
/**
|
|
62
|
+
* Checks if the passed range contains a linkable text.
|
|
63
|
+
*/
|
|
64
|
+
private _checkAndApplyAutoLinkOnRange;
|
|
65
|
+
/**
|
|
66
|
+
* Applies a link on a given range if the link should be applied.
|
|
67
|
+
*
|
|
68
|
+
* @param url The URL to link.
|
|
69
|
+
* @param range The text range to apply the link attribute to.
|
|
70
|
+
*/
|
|
71
|
+
private _applyAutoLink;
|
|
72
|
+
/**
|
|
73
|
+
* Enqueues autolink changes in the model.
|
|
74
|
+
*
|
|
75
|
+
* @param url The URL to link.
|
|
76
|
+
* @param range The text range to apply the link attribute to.
|
|
77
|
+
*/
|
|
78
|
+
private _persistAutoLink;
|
|
79
79
|
}
|
package/dist/index-content.css
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index-content.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-content.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index-content.css.map */"]}
|
package/dist/index-editor.css
CHANGED
|
@@ -2,213 +2,222 @@
|
|
|
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
|
-
}
|
|
5
|
+
.ck .ck-link_selected {
|
|
6
|
+
background: var(--ck-color-link-selected-background);
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
& span.image-inline {
|
|
9
|
+
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);
|
|
10
|
+
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.ck .ck-fake-link-selection{
|
|
14
|
-
background:var(--ck-color-link-fake-selection);
|
|
13
|
+
.ck .ck-fake-link-selection {
|
|
14
|
+
background: var(--ck-color-link-fake-selection);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.ck .ck-fake-link-selection_collapsed{
|
|
18
|
-
border-right:1px solid var(--ck-color-base-text);
|
|
19
|
-
outline:
|
|
20
|
-
height:100%;
|
|
21
|
-
margin-right
|
|
17
|
+
.ck .ck-fake-link-selection_collapsed {
|
|
18
|
+
border-right: 1px solid var(--ck-color-base-text);
|
|
19
|
+
outline: var(--ck-outline-fake-caret);
|
|
20
|
+
height: 100%;
|
|
21
|
+
margin-right: -1px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
:root{
|
|
25
|
-
--ck-link-bookmark-icon-size:calc(var(--ck-icon-size) * .7);
|
|
24
|
+
:root, :host {
|
|
25
|
+
--ck-link-bookmark-icon-size: calc(var(--ck-icon-size) * .7);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.ck.ck-toolbar.ck-link-toolbar
|
|
29
|
-
|
|
28
|
+
.ck.ck-toolbar.ck-link-toolbar {
|
|
29
|
+
& > .ck-toolbar__items {
|
|
30
|
+
flex-wrap: nowrap;
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
|
|
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
|
-
|
|
37
|
-
|
|
34
|
+
a.ck.ck-button.ck-link-toolbar__preview {
|
|
35
|
+
padding: 0 var(--ck-spacing-medium, var(--ck-spacing-base));
|
|
36
|
+
color: var(--ck-color-link-default);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
display: flex;
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
+
& .ck.ck-button__label {
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
max-width: var(--ck-input-width);
|
|
46
|
+
}
|
|
43
47
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
48
|
+
&, &:hover, &:focus, &:active {
|
|
49
|
+
background: none;
|
|
50
|
+
}
|
|
47
51
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
52
|
+
&:active {
|
|
53
|
+
box-shadow: none;
|
|
54
|
+
}
|
|
51
55
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
56
|
+
&:hover, &:focus {
|
|
57
|
+
text-decoration: underline;
|
|
58
|
+
}
|
|
55
59
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
+
&.ck-button_with-text .ck.ck-icon.ck-button__icon {
|
|
61
|
+
width: var(--ck-link-bookmark-icon-size);
|
|
62
|
+
height: var(--ck-link-bookmark-icon-size);
|
|
60
63
|
|
|
61
|
-
[dir="ltr"]
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
64
|
+
[dir="ltr"] & {
|
|
65
|
+
margin-right: var(--ck-spacing-tiny, var(--ck-spacing-xs));
|
|
66
|
+
margin-left: var(--ck-spacing-small, var(--ck-spacing-sm));
|
|
67
|
+
}
|
|
65
68
|
|
|
66
|
-
[dir="rtl"]
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
69
|
+
[dir="rtl"] & {
|
|
70
|
+
margin-left: var(--ck-spacing-tiny, var(--ck-spacing-xs));
|
|
71
|
+
margin-right: var(--ck-spacing-small, var(--ck-spacing-sm));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
&:has(.ck-icon) {
|
|
76
|
+
padding-left: var(--ck-spacing-extra-tiny, var(--ck-spacing-2xs));
|
|
77
|
+
}
|
|
73
78
|
}
|
|
74
79
|
|
|
75
|
-
.ck.ck-link-toolbar__preview{
|
|
76
|
-
display:inline-block;
|
|
77
|
-
}
|
|
80
|
+
.ck.ck-link-toolbar__preview {
|
|
81
|
+
display: inline-block;
|
|
78
82
|
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
& .ck-button__label {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
81
86
|
}
|
|
82
87
|
|
|
83
|
-
:root{
|
|
84
|
-
--ck-link-image-indicator-icon-size:20;
|
|
85
|
-
--ck-link-image-indicator-icon-is-visible:clamp(0px, 100% - 50px, 1px);
|
|
88
|
+
:root, :host {
|
|
89
|
+
--ck-link-image-indicator-icon-size: 20;
|
|
90
|
+
--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ck.ck-editor__editable {
|
|
94
|
+
& figure.image > a, & a span.image-inline {
|
|
95
|
+
&:after {
|
|
96
|
+
content: "";
|
|
97
|
+
top: min(var(--ck-spacing-medium, var(--ck-spacing-base)), 6%);
|
|
98
|
+
right: min(var(--ck-spacing-medium, var(--ck-spacing-base)), 6%);
|
|
99
|
+
width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
|
100
|
+
height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
|
101
|
+
background-color: #0006;
|
|
102
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");
|
|
103
|
+
background-position: center;
|
|
104
|
+
background-repeat: no-repeat;
|
|
105
|
+
background-size: 14px;
|
|
106
|
+
border-radius: 100%;
|
|
107
|
+
display: block;
|
|
108
|
+
position: absolute;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
86
112
|
}
|
|
87
113
|
|
|
88
|
-
:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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;
|
|
114
|
+
:root, :host {
|
|
115
|
+
--ck-link-panel-width: var(--ck-width-balloon-form);
|
|
116
|
+
--ck-link-provider-list-item-text-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
117
|
+
--ck-link-provider-list-item-height: calc(var(--ck-link-provider-list-item-text-height) + var(--ck-spacing-small, var(--ck-spacing-sm)) + var(--ck-spacing-small, var(--ck-spacing-sm)));
|
|
118
|
+
--ck-link-provider-list-padding-bottom: var(--ck-spacing-padding-compact);
|
|
103
119
|
}
|
|
104
120
|
|
|
105
|
-
|
|
106
|
-
--ck-link-panel-width
|
|
107
|
-
|
|
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
|
-
}
|
|
121
|
+
.ck.ck-form.ck-link-form {
|
|
122
|
+
width: var(--ck-link-panel-width);
|
|
123
|
+
padding-bottom: 0;
|
|
110
124
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
125
|
+
&.ck-responsive-form {
|
|
126
|
+
& .ck-labeled-field-view {
|
|
127
|
+
@media screen and (width <= 600px) {
|
|
128
|
+
margin: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
114
131
|
}
|
|
115
|
-
}
|
|
116
132
|
|
|
117
|
-
.ck
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
& .ck-link-form__providers-list {
|
|
134
|
+
padding-bottom: var(--ck-link-provider-list-padding-bottom);
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
display: flex;
|
|
137
|
+
position: relative;
|
|
138
|
+
|
|
139
|
+
&:before {
|
|
140
|
+
content: "";
|
|
141
|
+
border-top: var(--ck-border-divider);
|
|
142
|
+
height: 0;
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 0;
|
|
145
|
+
left: 0;
|
|
146
|
+
right: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:has(.ck-list__item:nth-child(n+5)) {
|
|
150
|
+
max-height: calc(var(--ck-link-provider-list-item-height) * 4 + var(--ck-spacing-large, var(--ck-spacing-lg)) + 1px);
|
|
151
|
+
overflow: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
& .ck-link__button {
|
|
155
|
+
padding: var(--ck-spacing-small, var(--ck-spacing-sm)) var(--ck-spacing-large, var(--ck-spacing-lg));
|
|
156
|
+
border-radius: var(--ck-button-border-radius);
|
|
157
|
+
|
|
158
|
+
& > .ck-button__label {
|
|
159
|
+
text-overflow: ellipsis;
|
|
160
|
+
flex-grow: 1;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
125
164
|
}
|
|
126
165
|
}
|
|
127
166
|
|
|
128
|
-
.ck.ck-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
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;
|
|
167
|
+
.ck.ck-link-form {
|
|
168
|
+
& .ck-link__items:empty {
|
|
169
|
+
display: none;
|
|
170
|
+
}
|
|
137
171
|
}
|
|
138
172
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
border-radius:0;
|
|
173
|
+
:root, :host {
|
|
174
|
+
--ck-link-properties-width: var(--ck-width-balloon-form);
|
|
142
175
|
}
|
|
143
176
|
|
|
144
|
-
.ck.ck-
|
|
145
|
-
|
|
146
|
-
flex-grow:1;
|
|
147
|
-
overflow:hidden;
|
|
177
|
+
.ck.ck-link-properties {
|
|
178
|
+
width: var(--ck-link-properties-width);
|
|
148
179
|
}
|
|
149
180
|
|
|
150
|
-
|
|
151
|
-
|
|
181
|
+
:root, :host {
|
|
182
|
+
--ck-link-providers-width: var(--ck-width-balloon-form);
|
|
183
|
+
--ck-link-list-view-max-height: 240px;
|
|
184
|
+
--ck-link-list-view-icon-size: calc(var(--ck-icon-size) * .8);
|
|
152
185
|
}
|
|
153
186
|
|
|
154
|
-
|
|
155
|
-
--ck-link-
|
|
156
|
-
}
|
|
187
|
+
.ck.ck-link-providers {
|
|
188
|
+
width: var(--ck-link-providers-width);
|
|
157
189
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
190
|
+
& .ck-form__header__label {
|
|
191
|
+
text-overflow: ellipsis;
|
|
192
|
+
overflow: hidden;
|
|
161
193
|
}
|
|
162
|
-
}
|
|
163
194
|
|
|
164
|
-
.ck
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
195
|
+
& > .ck-link-providers__list {
|
|
196
|
+
max-height: min(var(--ck-link-list-view-max-height), 40vh);
|
|
197
|
+
overflow: hidden auto;
|
|
198
|
+
|
|
199
|
+
& .ck-button {
|
|
200
|
+
& > .ck-icon {
|
|
201
|
+
width: var(--ck-link-list-view-icon-size);
|
|
202
|
+
height: var(--ck-link-list-view-icon-size);
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
& > .ck-button__label {
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
white-space: nowrap;
|
|
209
|
+
overflow: hidden;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
overscroll-behavior: contain;
|
|
177
214
|
}
|
|
178
|
-
}
|
|
179
215
|
|
|
180
|
-
.ck
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
text-overflow:ellipsis;
|
|
186
|
-
overflow:hidden;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.ck.ck-link-providers > .ck-link-providers__list{
|
|
190
|
-
max-height:min(var(--ck-link-list-view-max-height), 40vh);
|
|
191
|
-
overflow:hidden auto;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.ck.ck-link-providers > .ck-link-providers__list .ck-button > .ck-icon{
|
|
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;
|
|
216
|
+
& .ck-link__empty-list-info {
|
|
217
|
+
padding: calc(2 * var(--ck-spacing-large, var(--ck-spacing-lg))) var(--ck-spacing-medium, var(--ck-spacing-base));
|
|
218
|
+
text-align: center;
|
|
219
|
+
font-style: italic;
|
|
220
|
+
}
|
|
208
221
|
}
|
|
209
222
|
|
|
210
|
-
.
|
|
211
|
-
padding:calc(2 * var(--ck-spacing-large)) var(--ck-spacing-medium);
|
|
212
|
-
text-align:center;
|
|
213
|
-
font-style:italic;
|
|
214
|
-
}
|
|
223
|
+
/*# sourceMappingURL=index-editor.css.map */
|