@ckeditor/ckeditor5-link 39.0.2 → 40.0.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/build/link.js.map +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/hy.po +54 -0
- package/lang/translations/pt-br.po +2 -2
- package/package.json +3 -3
- package/src/augmentation.d.ts +30 -30
- package/src/augmentation.js +5 -5
- package/src/autolink.d.ts +60 -60
- package/src/autolink.js +216 -216
- package/src/index.d.ts +18 -18
- package/src/index.js +17 -17
- package/src/link.d.ts +27 -27
- package/src/link.js +31 -31
- package/src/linkcommand.d.ts +132 -132
- package/src/linkcommand.js +285 -285
- package/src/linkconfig.d.ts +251 -251
- package/src/linkconfig.js +5 -5
- package/src/linkediting.d.ts +106 -106
- package/src/linkediting.js +547 -547
- package/src/linkimage.d.ts +27 -27
- package/src/linkimage.js +31 -31
- package/src/linkimageediting.d.ts +39 -39
- package/src/linkimageediting.js +245 -245
- package/src/linkimageui.d.ts +40 -40
- package/src/linkimageui.js +96 -96
- package/src/linkui.d.ts +165 -165
- package/src/linkui.js +581 -581
- package/src/ui/linkactionsview.d.ts +101 -101
- package/src/ui/linkactionsview.js +156 -156
- package/src/ui/linkformview.d.ts +141 -141
- package/src/ui/linkformview.js +232 -232
- package/src/unlinkcommand.d.ts +31 -31
- package/src/unlinkcommand.js +66 -66
- package/src/utils/automaticdecorators.d.ts +45 -45
- package/src/utils/automaticdecorators.js +140 -140
- package/src/utils/manualdecorator.d.ts +72 -72
- package/src/utils/manualdecorator.js +47 -47
- package/src/utils.d.ts +80 -80
- package/src/utils.js +128 -128
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Armenian (https://app.transifex.com/ckeditor/teams/11143/hy/)\n"
|
|
16
|
+
"Language: hy\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the Unlink feature."
|
|
21
|
+
msgid "Unlink"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
msgctxt "Toolbar button tooltip for the Link feature."
|
|
25
|
+
msgid "Link"
|
|
26
|
+
msgstr "Հղում"
|
|
27
|
+
|
|
28
|
+
msgctxt "Label for the URL input in the Link URL editing balloon."
|
|
29
|
+
msgid "Link URL"
|
|
30
|
+
msgstr ""
|
|
31
|
+
|
|
32
|
+
msgctxt "Label for the image link button."
|
|
33
|
+
msgid "Link image"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Button opening the Link URL editing balloon."
|
|
37
|
+
msgid "Edit link"
|
|
38
|
+
msgstr "Խմբագրել հղումը"
|
|
39
|
+
|
|
40
|
+
msgctxt "Button opening the link in new browser tab."
|
|
41
|
+
msgid "Open link in new tab"
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
msgctxt "Label explaining that a link has no URL set (the URL is empty)."
|
|
45
|
+
msgid "This link has no URL"
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
msgctxt "The label of the switch button that controls whether the edited link will open in a new tab."
|
|
49
|
+
msgid "Open in a new tab"
|
|
50
|
+
msgstr ""
|
|
51
|
+
|
|
52
|
+
msgctxt "The label of the switch button that controls whether the edited link refers to downloadable resource."
|
|
53
|
+
msgid "Downloadable"
|
|
54
|
+
msgstr ""
|
|
@@ -27,11 +27,11 @@ msgstr "Link"
|
|
|
27
27
|
|
|
28
28
|
msgctxt "Label for the URL input in the Link URL editing balloon."
|
|
29
29
|
msgid "Link URL"
|
|
30
|
-
msgstr "URL"
|
|
30
|
+
msgstr "URL do link"
|
|
31
31
|
|
|
32
32
|
msgctxt "Label for the image link button."
|
|
33
33
|
msgid "Link image"
|
|
34
|
-
msgstr "Link
|
|
34
|
+
msgstr "Link com imagem"
|
|
35
35
|
|
|
36
36
|
msgctxt "Button opening the Link URL editing balloon."
|
|
37
37
|
msgid "Edit link"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-link",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.0.0",
|
|
4
4
|
"description": "Link feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "
|
|
16
|
-
"ckeditor5": "
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "40.0.0",
|
|
16
|
+
"ckeditor5": "40.0.0",
|
|
17
17
|
"lodash-es": "4.17.21"
|
|
18
18
|
},
|
|
19
19
|
"author": "CKSource (http://cksource.com/)",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
import type { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from './index';
|
|
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
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from './index';
|
|
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
|
+
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
package/src/autolink.d.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module link/autolink
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
-
/**
|
|
11
|
-
* The autolink plugin.
|
|
12
|
-
*/
|
|
13
|
-
export default class AutoLink extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof Delete];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
static get pluginName(): "AutoLink";
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
init(): void;
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
afterInit(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Enables autolinking on typing.
|
|
32
|
-
*/
|
|
33
|
-
private _enableTypingHandling;
|
|
34
|
-
/**
|
|
35
|
-
* Enables autolinking on the <kbd>Enter</kbd> key.
|
|
36
|
-
*/
|
|
37
|
-
private _enableEnterHandling;
|
|
38
|
-
/**
|
|
39
|
-
* Enables autolinking on the <kbd>Shift</kbd>+<kbd>Enter</kbd> keyboard shortcut.
|
|
40
|
-
*/
|
|
41
|
-
private _enableShiftEnterHandling;
|
|
42
|
-
/**
|
|
43
|
-
* Checks if the passed range contains a linkable text.
|
|
44
|
-
*/
|
|
45
|
-
private _checkAndApplyAutoLinkOnRange;
|
|
46
|
-
/**
|
|
47
|
-
* Applies a link on a given range if the link should be applied.
|
|
48
|
-
*
|
|
49
|
-
* @param url The URL to link.
|
|
50
|
-
* @param range The text range to apply the link attribute to.
|
|
51
|
-
*/
|
|
52
|
-
private _applyAutoLink;
|
|
53
|
-
/**
|
|
54
|
-
* Enqueues autolink changes in the model.
|
|
55
|
-
*
|
|
56
|
-
* @param url The URL to link.
|
|
57
|
-
* @param range The text range to apply the link attribute to.
|
|
58
|
-
*/
|
|
59
|
-
private _persistAutoLink;
|
|
60
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module link/autolink
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
+
/**
|
|
11
|
+
* The autolink plugin.
|
|
12
|
+
*/
|
|
13
|
+
export default class AutoLink extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof Delete];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "AutoLink";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
init(): void;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
afterInit(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Enables autolinking on typing.
|
|
32
|
+
*/
|
|
33
|
+
private _enableTypingHandling;
|
|
34
|
+
/**
|
|
35
|
+
* Enables autolinking on the <kbd>Enter</kbd> key.
|
|
36
|
+
*/
|
|
37
|
+
private _enableEnterHandling;
|
|
38
|
+
/**
|
|
39
|
+
* Enables autolinking on the <kbd>Shift</kbd>+<kbd>Enter</kbd> keyboard shortcut.
|
|
40
|
+
*/
|
|
41
|
+
private _enableShiftEnterHandling;
|
|
42
|
+
/**
|
|
43
|
+
* Checks if the passed range contains a linkable text.
|
|
44
|
+
*/
|
|
45
|
+
private _checkAndApplyAutoLinkOnRange;
|
|
46
|
+
/**
|
|
47
|
+
* Applies a link on a given range if the link should be applied.
|
|
48
|
+
*
|
|
49
|
+
* @param url The URL to link.
|
|
50
|
+
* @param range The text range to apply the link attribute to.
|
|
51
|
+
*/
|
|
52
|
+
private _applyAutoLink;
|
|
53
|
+
/**
|
|
54
|
+
* Enqueues autolink changes in the model.
|
|
55
|
+
*
|
|
56
|
+
* @param url The URL to link.
|
|
57
|
+
* @param range The text range to apply the link attribute to.
|
|
58
|
+
*/
|
|
59
|
+
private _persistAutoLink;
|
|
60
|
+
}
|