@ckeditor/ckeditor5-link 38.2.0-alpha.1 → 39.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/README.md +0 -1
- package/build/translations/sq.js +1 -1
- package/lang/translations/sq.po +3 -3
- package/package.json +4 -5
- package/src/augmentation.d.ts +1 -1
- package/src/autolink.d.ts +2 -2
- package/src/autolink.js +3 -3
- package/src/index.d.ts +11 -11
- package/src/index.js +10 -10
- package/src/link.d.ts +4 -4
- package/src/link.js +4 -4
- package/src/linkcommand.d.ts +4 -4
- package/src/linkcommand.js +5 -5
- package/src/linkconfig.d.ts +1 -1
- package/src/linkediting.d.ts +3 -3
- package/src/linkediting.js +9 -9
- package/src/linkimage.d.ts +3 -3
- package/src/linkimage.js +3 -3
- package/src/linkimageediting.d.ts +2 -2
- package/src/linkimageediting.js +4 -4
- package/src/linkimageui.d.ts +3 -3
- package/src/linkimageui.js +5 -5
- package/src/linkui.d.ts +4 -4
- package/src/linkui.js +7 -7
- package/src/ui/linkactionsview.d.ts +2 -2
- package/src/ui/linkactionsview.js +4 -4
- package/src/ui/linkformview.d.ts +3 -3
- package/src/ui/linkformview.js +3 -3
- package/src/unlinkcommand.d.ts +1 -1
- package/src/unlinkcommand.js +3 -3
- package/src/utils/automaticdecorators.d.ts +3 -3
- package/src/utils/automaticdecorators.js +1 -1
- package/src/utils/manualdecorator.d.ts +5 -5
- package/src/utils/manualdecorator.js +1 -1
- package/src/utils.d.ts +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@ CKEditor 5 link feature
|
|
|
4
4
|
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-link)
|
|
5
5
|
[](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
|
6
6
|
[](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
|
7
|
-

|
|
8
7
|
|
|
9
8
|
This package implements the link feature for CKEditor 5. It allows for inserting hyperlinks into the edited content and offers the UI to create and edit them.
|
|
10
9
|
|
package/build/translations/sq.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(n){const i=n.sq=n.sq||{};i.dictionary=Object.assign(i.dictionary||{},{Downloadable:"","Edit link":"Redakto nyjën",Link:"Shto nyjën","Link image":"","Link URL":"Nyja e URL-së","Open in a new tab":"","Open link in new tab":"Hap nyjën në faqe të re","This link has no URL":"Kjo nyje nuk ka URL",Unlink:"Largo nyjën"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(n){const i=n.sq=n.sq||{};i.dictionary=Object.assign(i.dictionary||{},{Downloadable:"E shkarkueshme","Edit link":"Redakto nyjën",Link:"Shto nyjën","Link image":"Foto e nyjes","Link URL":"Nyja e URL-së","Open in a new tab":"Hape në një fletë të re","Open link in new tab":"Hap nyjën në faqe të re","This link has no URL":"Kjo nyje nuk ka URL",Unlink:"Largo nyjën"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
package/lang/translations/sq.po
CHANGED
|
@@ -30,7 +30,7 @@ msgstr "Nyja e URL-së"
|
|
|
30
30
|
|
|
31
31
|
msgctxt "Label for the image link button."
|
|
32
32
|
msgid "Link image"
|
|
33
|
-
msgstr ""
|
|
33
|
+
msgstr "Foto e nyjes"
|
|
34
34
|
|
|
35
35
|
msgctxt "Button opening the Link URL editing balloon."
|
|
36
36
|
msgid "Edit link"
|
|
@@ -46,8 +46,8 @@ msgstr "Kjo nyje nuk ka URL"
|
|
|
46
46
|
|
|
47
47
|
msgctxt "The label of the switch button that controls whether the edited link will open in a new tab."
|
|
48
48
|
msgid "Open in a new tab"
|
|
49
|
-
msgstr ""
|
|
49
|
+
msgstr "Hape në një fletë të re"
|
|
50
50
|
|
|
51
51
|
msgctxt "The label of the switch button that controls whether the edited link refers to downloadable resource."
|
|
52
52
|
msgid "Downloadable"
|
|
53
|
-
msgstr ""
|
|
53
|
+
msgstr "E shkarkueshme"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-link",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "39.0.0",
|
|
4
4
|
"description": "Link feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
"ckeditor5-dll"
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
|
-
"type": "module",
|
|
15
14
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-ui": "
|
|
17
|
-
"ckeditor5": "
|
|
18
|
-
"lodash-es": "
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "39.0.0",
|
|
16
|
+
"ckeditor5": "39.0.0",
|
|
17
|
+
"lodash-es": "4.17.21"
|
|
19
18
|
},
|
|
20
19
|
"engines": {
|
|
21
20
|
"node": ">=16.0.0",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from './index
|
|
5
|
+
import type { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from './index';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface EditorConfig {
|
|
8
8
|
/**
|
package/src/autolink.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/autolink
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
10
10
|
/**
|
|
11
11
|
* The autolink plugin.
|
|
12
12
|
*/
|
package/src/autolink.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/autolink
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import { Delete, TextWatcher, getLastTextLine } from 'ckeditor5/src/typing
|
|
10
|
-
import { addLinkProtocolIfApplicable, linkHasProtocol } from './utils
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Delete, TextWatcher, getLastTextLine } from 'ckeditor5/src/typing';
|
|
10
|
+
import { addLinkProtocolIfApplicable, linkHasProtocol } from './utils';
|
|
11
11
|
const MIN_LINK_LENGTH_WITH_SPACE_AT_END = 4; // Ie: "t.co " (length 5).
|
|
12
12
|
// This was a tweak from https://gist.github.com/dperini/729294.
|
|
13
13
|
const URL_REG_EXP = new RegExp(
|
package/src/index.d.ts
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link
|
|
7
7
|
*/
|
|
8
|
-
export { default as Link } from './link
|
|
9
|
-
export { default as LinkEditing } from './linkediting
|
|
10
|
-
export { default as LinkUI } from './linkui
|
|
11
|
-
export { default as LinkImage } from './linkimage
|
|
12
|
-
export { default as LinkImageEditing } from './linkimageediting
|
|
13
|
-
export { default as LinkImageUI } from './linkimageui
|
|
14
|
-
export { default as AutoLink } from './autolink
|
|
15
|
-
export { LinkConfig } from './linkconfig
|
|
16
|
-
export { default as LinkCommand } from './linkcommand
|
|
17
|
-
export { default as UnlinkCommand } from './unlinkcommand
|
|
18
|
-
import './augmentation
|
|
8
|
+
export { default as Link } from './link';
|
|
9
|
+
export { default as LinkEditing } from './linkediting';
|
|
10
|
+
export { default as LinkUI } from './linkui';
|
|
11
|
+
export { default as LinkImage } from './linkimage';
|
|
12
|
+
export { default as LinkImageEditing } from './linkimageediting';
|
|
13
|
+
export { default as LinkImageUI } from './linkimageui';
|
|
14
|
+
export { default as AutoLink } from './autolink';
|
|
15
|
+
export { LinkConfig } from './linkconfig';
|
|
16
|
+
export { default as LinkCommand } from './linkcommand';
|
|
17
|
+
export { default as UnlinkCommand } from './unlinkcommand';
|
|
18
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link
|
|
7
7
|
*/
|
|
8
|
-
export { default as Link } from './link
|
|
9
|
-
export { default as LinkEditing } from './linkediting
|
|
10
|
-
export { default as LinkUI } from './linkui
|
|
11
|
-
export { default as LinkImage } from './linkimage
|
|
12
|
-
export { default as LinkImageEditing } from './linkimageediting
|
|
13
|
-
export { default as LinkImageUI } from './linkimageui
|
|
14
|
-
export { default as AutoLink } from './autolink
|
|
15
|
-
export { default as LinkCommand } from './linkcommand
|
|
16
|
-
export { default as UnlinkCommand } from './unlinkcommand
|
|
17
|
-
import './augmentation
|
|
8
|
+
export { default as Link } from './link';
|
|
9
|
+
export { default as LinkEditing } from './linkediting';
|
|
10
|
+
export { default as LinkUI } from './linkui';
|
|
11
|
+
export { default as LinkImage } from './linkimage';
|
|
12
|
+
export { default as LinkImageEditing } from './linkimageediting';
|
|
13
|
+
export { default as LinkImageUI } from './linkimageui';
|
|
14
|
+
export { default as AutoLink } from './autolink';
|
|
15
|
+
export { default as LinkCommand } from './linkcommand';
|
|
16
|
+
export { default as UnlinkCommand } from './unlinkcommand';
|
|
17
|
+
import './augmentation';
|
package/src/link.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/link
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import LinkEditing from './linkediting
|
|
10
|
-
import LinkUI from './linkui
|
|
11
|
-
import AutoLink from './autolink
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import LinkEditing from './linkediting';
|
|
10
|
+
import LinkUI from './linkui';
|
|
11
|
+
import AutoLink from './autolink';
|
|
12
12
|
/**
|
|
13
13
|
* The link plugin.
|
|
14
14
|
*
|
package/src/link.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/link
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import LinkEditing from './linkediting
|
|
10
|
-
import LinkUI from './linkui
|
|
11
|
-
import AutoLink from './autolink
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import LinkEditing from './linkediting';
|
|
10
|
+
import LinkUI from './linkui';
|
|
11
|
+
import AutoLink from './autolink';
|
|
12
12
|
/**
|
|
13
13
|
* The link plugin.
|
|
14
14
|
*
|
package/src/linkcommand.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core
|
|
9
|
-
import { Collection } from 'ckeditor5/src/utils
|
|
10
|
-
import AutomaticDecorators from './utils/automaticdecorators
|
|
11
|
-
import type ManualDecorator from './utils/manualdecorator
|
|
8
|
+
import { Command } from 'ckeditor5/src/core';
|
|
9
|
+
import { Collection } from 'ckeditor5/src/utils';
|
|
10
|
+
import AutomaticDecorators from './utils/automaticdecorators';
|
|
11
|
+
import type ManualDecorator from './utils/manualdecorator';
|
|
12
12
|
/**
|
|
13
13
|
* The link command. It is used by the {@link module:link/link~Link link feature}.
|
|
14
14
|
*/
|
package/src/linkcommand.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core
|
|
9
|
-
import { findAttributeRange } from 'ckeditor5/src/typing
|
|
10
|
-
import { Collection, first, toMap } from 'ckeditor5/src/utils
|
|
11
|
-
import AutomaticDecorators from './utils/automaticdecorators
|
|
12
|
-
import { isLinkableElement } from './utils
|
|
8
|
+
import { Command } from 'ckeditor5/src/core';
|
|
9
|
+
import { findAttributeRange } from 'ckeditor5/src/typing';
|
|
10
|
+
import { Collection, first, toMap } from 'ckeditor5/src/utils';
|
|
11
|
+
import AutomaticDecorators from './utils/automaticdecorators';
|
|
12
|
+
import { isLinkableElement } from './utils';
|
|
13
13
|
/**
|
|
14
14
|
* The link command. It is used by the {@link module:link/link~Link link feature}.
|
|
15
15
|
*/
|
package/src/linkconfig.d.ts
CHANGED
package/src/linkediting.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
9
|
-
import { Input, TwoStepCaretMovement } from 'ckeditor5/src/typing
|
|
10
|
-
import { ClipboardPipeline } from 'ckeditor5/src/clipboard
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { Input, TwoStepCaretMovement } from 'ckeditor5/src/typing';
|
|
10
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
|
|
11
11
|
import '../theme/link.css';
|
|
12
12
|
/**
|
|
13
13
|
* The link engine feature.
|
package/src/linkediting.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import { MouseObserver } from 'ckeditor5/src/engine
|
|
10
|
-
import { Input, TwoStepCaretMovement, inlineHighlight, findAttributeRange } from 'ckeditor5/src/typing
|
|
11
|
-
import { ClipboardPipeline } from 'ckeditor5/src/clipboard
|
|
12
|
-
import { keyCodes, env } from 'ckeditor5/src/utils
|
|
13
|
-
import LinkCommand from './linkcommand
|
|
14
|
-
import UnlinkCommand from './unlinkcommand
|
|
15
|
-
import ManualDecorator from './utils/manualdecorator
|
|
16
|
-
import { createLinkElement, ensureSafeUrl, getLocalizedDecorators, normalizeDecorators, openLink, addLinkProtocolIfApplicable } from './utils
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { MouseObserver } from 'ckeditor5/src/engine';
|
|
10
|
+
import { Input, TwoStepCaretMovement, inlineHighlight, findAttributeRange } from 'ckeditor5/src/typing';
|
|
11
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
|
|
12
|
+
import { keyCodes, env } from 'ckeditor5/src/utils';
|
|
13
|
+
import LinkCommand from './linkcommand';
|
|
14
|
+
import UnlinkCommand from './unlinkcommand';
|
|
15
|
+
import ManualDecorator from './utils/manualdecorator';
|
|
16
|
+
import { createLinkElement, ensureSafeUrl, getLocalizedDecorators, normalizeDecorators, openLink, addLinkProtocolIfApplicable } from './utils';
|
|
17
17
|
import '../theme/link.css';
|
|
18
18
|
const HIGHLIGHT_CLASS = 'ck-link_selected';
|
|
19
19
|
const DECORATOR_AUTOMATIC = 'automatic';
|
package/src/linkimage.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkimage
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import LinkImageEditing from './linkimageediting
|
|
10
|
-
import LinkImageUI from './linkimageui
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import LinkImageEditing from './linkimageediting';
|
|
10
|
+
import LinkImageUI from './linkimageui';
|
|
11
11
|
import '../theme/linkimage.css';
|
|
12
12
|
/**
|
|
13
13
|
* The `LinkImage` plugin.
|
package/src/linkimage.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkimage
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import LinkImageEditing from './linkimageediting
|
|
10
|
-
import LinkImageUI from './linkimageui
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import LinkImageEditing from './linkimageediting';
|
|
10
|
+
import LinkImageUI from './linkimageui';
|
|
11
11
|
import '../theme/linkimage.css';
|
|
12
12
|
/**
|
|
13
13
|
* The `LinkImage` plugin.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkimageediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import LinkEditing from './linkediting
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import LinkEditing from './linkediting';
|
|
10
10
|
/**
|
|
11
11
|
* The link image engine feature.
|
|
12
12
|
*
|
package/src/linkimageediting.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkimageediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import { Matcher } from 'ckeditor5/src/engine
|
|
10
|
-
import { toMap } from 'ckeditor5/src/utils
|
|
11
|
-
import LinkEditing from './linkediting
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Matcher } from 'ckeditor5/src/engine';
|
|
10
|
+
import { toMap } from 'ckeditor5/src/utils';
|
|
11
|
+
import LinkEditing from './linkediting';
|
|
12
12
|
/**
|
|
13
13
|
* The link image engine feature.
|
|
14
14
|
*
|
package/src/linkimageui.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
6
|
-
import LinkUI from './linkui
|
|
7
|
-
import LinkEditing from './linkediting
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
import LinkUI from './linkui';
|
|
7
|
+
import LinkEditing from './linkediting';
|
|
8
8
|
/**
|
|
9
9
|
* The link image UI plugin.
|
|
10
10
|
*
|
package/src/linkimageui.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkimageui
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView } from 'ckeditor5/src/ui
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
10
|
-
import LinkUI from './linkui
|
|
11
|
-
import LinkEditing from './linkediting
|
|
12
|
-
import { LINK_KEYSTROKE } from './utils
|
|
8
|
+
import { ButtonView } from 'ckeditor5/src/ui';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import LinkUI from './linkui';
|
|
11
|
+
import LinkEditing from './linkediting';
|
|
12
|
+
import { LINK_KEYSTROKE } from './utils';
|
|
13
13
|
import linkIcon from '../theme/icons/link.svg';
|
|
14
14
|
/**
|
|
15
15
|
* The link image UI plugin.
|
package/src/linkui.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import { ContextualBalloon, type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui
|
|
10
|
-
import LinkFormView from './ui/linkformview
|
|
11
|
-
import LinkActionsView from './ui/linkactionsview
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ContextualBalloon, type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui';
|
|
10
|
+
import LinkFormView from './ui/linkformview';
|
|
11
|
+
import LinkActionsView from './ui/linkactionsview';
|
|
12
12
|
/**
|
|
13
13
|
* The link UI plugin. It introduces the `'link'` and `'unlink'` buttons and support for the <kbd>Ctrl+K</kbd> keystroke.
|
|
14
14
|
*
|
package/src/linkui.js
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/linkui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
9
|
-
import { ClickObserver } from 'ckeditor5/src/engine
|
|
10
|
-
import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui
|
|
11
|
-
import { isWidget } from 'ckeditor5/src/widget
|
|
12
|
-
import LinkFormView from './ui/linkformview
|
|
13
|
-
import LinkActionsView from './ui/linkactionsview
|
|
14
|
-
import { addLinkProtocolIfApplicable, isLinkElement, LINK_KEYSTROKE } from './utils
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ClickObserver } from 'ckeditor5/src/engine';
|
|
10
|
+
import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui';
|
|
11
|
+
import { isWidget } from 'ckeditor5/src/widget';
|
|
12
|
+
import LinkFormView from './ui/linkformview';
|
|
13
|
+
import LinkActionsView from './ui/linkactionsview';
|
|
14
|
+
import { addLinkProtocolIfApplicable, isLinkElement, LINK_KEYSTROKE } from './utils';
|
|
15
15
|
import linkIcon from '../theme/icons/link.svg';
|
|
16
16
|
const VISUAL_SELECTION_MARKER_NAME = 'link-ui';
|
|
17
17
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/ui/linkactionsview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, View } from 'ckeditor5/src/ui
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type LocaleTranslate, type Locale } from 'ckeditor5/src/utils
|
|
8
|
+
import { ButtonView, View } from 'ckeditor5/src/ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type LocaleTranslate, type Locale } from 'ckeditor5/src/utils';
|
|
10
10
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
11
11
|
import '../../theme/linkactions.css';
|
|
12
12
|
/**
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/ui/linkactionsview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, View, ViewCollection, FocusCycler } from 'ckeditor5/src/ui
|
|
9
|
-
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils
|
|
10
|
-
import { icons } from 'ckeditor5/src/core
|
|
11
|
-
import { ensureSafeUrl } from '../utils
|
|
8
|
+
import { ButtonView, View, ViewCollection, FocusCycler } from 'ckeditor5/src/ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
|
|
10
|
+
import { icons } from 'ckeditor5/src/core';
|
|
11
|
+
import { ensureSafeUrl } from '../utils';
|
|
12
12
|
// See: #8833.
|
|
13
13
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
|
14
14
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
package/src/ui/linkformview.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/ui/linkformview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, LabeledFieldView, View, ViewCollection, type InputTextView } from 'ckeditor5/src/ui
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils
|
|
10
|
-
import type LinkCommand from '../linkcommand
|
|
8
|
+
import { ButtonView, LabeledFieldView, View, ViewCollection, type InputTextView } from 'ckeditor5/src/ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import type LinkCommand from '../linkcommand';
|
|
11
11
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
12
12
|
import '../../theme/linkform.css';
|
|
13
13
|
/**
|
package/src/ui/linkformview.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/ui/linkformview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, SwitchButtonView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui
|
|
9
|
-
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils
|
|
10
|
-
import { icons } from 'ckeditor5/src/core
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, SwitchButtonView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
|
|
10
|
+
import { icons } from 'ckeditor5/src/core';
|
|
11
11
|
// See: #8833.
|
|
12
12
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
|
13
13
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
package/src/unlinkcommand.d.ts
CHANGED
package/src/unlinkcommand.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/unlinkcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core
|
|
9
|
-
import { findAttributeRange } from 'ckeditor5/src/typing
|
|
10
|
-
import { isLinkableElement } from './utils
|
|
8
|
+
import { Command } from 'ckeditor5/src/core';
|
|
9
|
+
import { findAttributeRange } from 'ckeditor5/src/typing';
|
|
10
|
+
import { isLinkableElement } from './utils';
|
|
11
11
|
/**
|
|
12
12
|
* The unlink command. It is used by the {@link module:link/link~Link link plugin}.
|
|
13
13
|
*/
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/utils/automaticdecorators
|
|
7
7
|
*/
|
|
8
|
-
import { type ArrayOrItem } from 'ckeditor5/src/utils
|
|
9
|
-
import type { DowncastDispatcher } from 'ckeditor5/src/engine
|
|
10
|
-
import type { NormalizedLinkDecoratorAutomaticDefinition } from '../utils
|
|
8
|
+
import { type ArrayOrItem } from 'ckeditor5/src/utils';
|
|
9
|
+
import type { DowncastDispatcher } from 'ckeditor5/src/engine';
|
|
10
|
+
import type { NormalizedLinkDecoratorAutomaticDefinition } from '../utils';
|
|
11
11
|
/**
|
|
12
12
|
* Helper class that ties together all {@link module:link/linkconfig~LinkDecoratorAutomaticDefinition} and provides
|
|
13
13
|
* the {@link module:engine/conversion/downcasthelpers~DowncastHelpers#attributeToElement downcast dispatchers} for them.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/utils/automaticdecorators
|
|
7
7
|
*/
|
|
8
|
-
import { toMap } from 'ckeditor5/src/utils
|
|
8
|
+
import { toMap } from 'ckeditor5/src/utils';
|
|
9
9
|
/**
|
|
10
10
|
* Helper class that ties together all {@link module:link/linkconfig~LinkDecoratorAutomaticDefinition} and provides
|
|
11
11
|
* the {@link module:engine/conversion/downcasthelpers~DowncastHelpers#attributeToElement downcast dispatchers} for them.
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/utils/manualdecorator
|
|
7
7
|
*/
|
|
8
|
-
import { type ArrayOrItem } from 'ckeditor5/src/utils
|
|
9
|
-
import type { MatcherObjectPattern } from 'ckeditor5/src/engine
|
|
10
|
-
import type { NormalizedLinkDecoratorManualDefinition } from '../utils
|
|
8
|
+
import { type ArrayOrItem } from 'ckeditor5/src/utils';
|
|
9
|
+
import type { MatcherObjectPattern } from 'ckeditor5/src/engine';
|
|
10
|
+
import type { NormalizedLinkDecoratorManualDefinition } from '../utils';
|
|
11
11
|
declare const ManualDecorator_base: {
|
|
12
|
-
new (): import("ckeditor5/src/utils
|
|
13
|
-
prototype: import("ckeditor5/src/utils
|
|
12
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
13
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Helper class that stores manual decorators with observable {@link module:link/utils/manualdecorator~ManualDecorator#value}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/utils/manualdecorator
|
|
7
7
|
*/
|
|
8
|
-
import { ObservableMixin } from 'ckeditor5/src/utils
|
|
8
|
+
import { ObservableMixin } from 'ckeditor5/src/utils';
|
|
9
9
|
/**
|
|
10
10
|
* Helper class that stores manual decorators with observable {@link module:link/utils/manualdecorator~ManualDecorator#value}
|
|
11
11
|
* to support integration with the UI state. An instance of this class is a model with the state of individual manual decorators.
|
package/src/utils.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module link/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { DowncastConversionApi, Element, Schema, ViewAttributeElement, ViewNode, ViewDocumentFragment } from 'ckeditor5/src/engine
|
|
9
|
-
import type { LocaleTranslate } from 'ckeditor5/src/utils
|
|
10
|
-
import type { LinkDecoratorAutomaticDefinition, LinkDecoratorDefinition, LinkDecoratorManualDefinition } from './linkconfig
|
|
8
|
+
import type { DowncastConversionApi, Element, Schema, ViewAttributeElement, ViewNode, ViewDocumentFragment } from 'ckeditor5/src/engine';
|
|
9
|
+
import type { LocaleTranslate } from 'ckeditor5/src/utils';
|
|
10
|
+
import type { LinkDecoratorAutomaticDefinition, LinkDecoratorDefinition, LinkDecoratorManualDefinition } from './linkconfig';
|
|
11
11
|
/**
|
|
12
12
|
* A keystroke used by the {@link module:link/linkui~LinkUI link UI feature}.
|
|
13
13
|
*/
|