@ckeditor/ckeditor5-link 40.2.0 → 41.1.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/build/link.js +2 -2
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/autolink.d.ts +4 -4
- package/src/autolink.js +6 -6
- package/src/index.d.ts +12 -12
- package/src/index.js +11 -11
- package/src/link.d.ts +5 -5
- package/src/link.js +5 -5
- package/src/linkcommand.d.ts +5 -5
- package/src/linkcommand.js +6 -6
- package/src/linkconfig.d.ts +21 -2
- package/src/linkconfig.js +1 -1
- package/src/linkediting.d.ts +4 -4
- package/src/linkediting.js +10 -9
- package/src/linkimage.d.ts +4 -4
- package/src/linkimage.js +4 -4
- package/src/linkimageediting.d.ts +4 -4
- package/src/linkimageediting.js +6 -6
- package/src/linkimageui.d.ts +4 -4
- package/src/linkimageui.js +6 -6
- package/src/linkui.d.ts +5 -5
- package/src/linkui.js +19 -15
- package/src/ui/linkactionsview.d.ts +4 -4
- package/src/ui/linkactionsview.js +5 -5
- package/src/ui/linkformview.d.ts +4 -4
- package/src/ui/linkformview.js +4 -4
- package/src/unlinkcommand.d.ts +2 -2
- package/src/unlinkcommand.js +4 -4
- package/src/utils/automaticdecorators.d.ts +4 -4
- package/src/utils/automaticdecorators.js +2 -2
- package/src/utils/manualdecorator.d.ts +6 -6
- package/src/utils/manualdecorator.js +2 -2
- package/src/utils.d.ts +4 -4
- package/src/utils.js +1 -1
- package/theme/link.css +1 -1
- package/theme/linkactions.css +1 -1
- package/theme/linkform.css +1 -1
- package/theme/linkimage.css +1 -1
package/src/linkui.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import { ClickObserver } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { isWidget } from 'ckeditor5/src/widget.js';
|
|
12
|
+
import LinkFormView from './ui/linkformview.js';
|
|
13
|
+
import LinkActionsView from './ui/linkactionsview.js';
|
|
14
|
+
import { addLinkProtocolIfApplicable, isLinkElement, LINK_KEYSTROKE } from './utils.js';
|
|
15
15
|
import linkIcon from '../theme/icons/link.svg';
|
|
16
16
|
const VISUAL_SELECTION_MARKER_NAME = 'link-ui';
|
|
17
17
|
/**
|
|
@@ -131,11 +131,13 @@ export default class LinkUI extends Plugin {
|
|
|
131
131
|
const editor = this.editor;
|
|
132
132
|
const linkCommand = editor.commands.get('link');
|
|
133
133
|
const defaultProtocol = editor.config.get('link.defaultProtocol');
|
|
134
|
+
const allowCreatingEmptyLinks = editor.config.get('link.allowCreatingEmptyLinks');
|
|
134
135
|
const formView = new (CssTransitionDisablerMixin(LinkFormView))(editor.locale, linkCommand);
|
|
135
136
|
formView.urlInputView.fieldView.bind('value').to(linkCommand, 'value');
|
|
136
137
|
// Form elements should be read-only when corresponding commands are disabled.
|
|
137
138
|
formView.urlInputView.bind('isEnabled').to(linkCommand, 'isEnabled');
|
|
138
|
-
|
|
139
|
+
// Disable the "save" button if the command is disabled or the input is empty despite being required.
|
|
140
|
+
formView.saveButtonView.bind('isEnabled').to(linkCommand, 'isEnabled', formView.urlInputView, 'isEmpty', (isCommandEnabled, isInputEmpty) => isCommandEnabled && (allowCreatingEmptyLinks || !isInputEmpty));
|
|
139
141
|
// Execute link command after clicking the "Save" button.
|
|
140
142
|
this.listenTo(formView, 'submit', () => {
|
|
141
143
|
const { value } = formView.urlInputView.fieldView.element;
|
|
@@ -269,18 +271,18 @@ export default class LinkUI extends Plugin {
|
|
|
269
271
|
view: this.formView,
|
|
270
272
|
position: this._getBalloonPositionData()
|
|
271
273
|
});
|
|
272
|
-
// Select input when form view is currently visible.
|
|
273
|
-
if (this._balloon.visibleView === this.formView) {
|
|
274
|
-
this.formView.urlInputView.fieldView.select();
|
|
275
|
-
}
|
|
276
|
-
this.formView.enableCssTransitions();
|
|
277
274
|
// Make sure that each time the panel shows up, the URL field remains in sync with the value of
|
|
278
275
|
// the command. If the user typed in the input, then canceled the balloon (`urlInputView.fieldView#value` stays
|
|
279
276
|
// unaltered) and re-opened it without changing the value of the link command (e.g. because they
|
|
280
277
|
// clicked the same link), they would see the old value instead of the actual value of the command.
|
|
281
278
|
// https://github.com/ckeditor/ckeditor5-link/issues/78
|
|
282
279
|
// https://github.com/ckeditor/ckeditor5-link/issues/123
|
|
283
|
-
this.formView.urlInputView.fieldView.
|
|
280
|
+
this.formView.urlInputView.fieldView.value = linkCommand.value || '';
|
|
281
|
+
// Select input when form view is currently visible.
|
|
282
|
+
if (this._balloon.visibleView === this.formView) {
|
|
283
|
+
this.formView.urlInputView.fieldView.select();
|
|
284
|
+
}
|
|
285
|
+
this.formView.enableCssTransitions();
|
|
284
286
|
}
|
|
285
287
|
/**
|
|
286
288
|
* Closes the form view. Decides whether the balloon should be hidden completely or if the action view should be shown. This is
|
|
@@ -309,6 +311,8 @@ export default class LinkUI extends Plugin {
|
|
|
309
311
|
// Blur the input element before removing it from DOM to prevent issues in some browsers.
|
|
310
312
|
// See https://github.com/ckeditor/ckeditor5/issues/1501.
|
|
311
313
|
this.formView.saveButtonView.focus();
|
|
314
|
+
// Reset the URL field to update the state of the submit button.
|
|
315
|
+
this.formView.urlInputView.fieldView.reset();
|
|
312
316
|
this._balloon.remove(this.formView);
|
|
313
317
|
// Because the form has an input which has focus, the focus must be brought back
|
|
314
318
|
// to the editor. Otherwise, it would be lost.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type LocaleTranslate, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
11
11
|
import '../../theme/linkactions.css';
|
|
12
12
|
/**
|
|
@@ -25,7 +25,7 @@ export default class LinkActionsView extends View {
|
|
|
25
25
|
/**
|
|
26
26
|
* The href preview view.
|
|
27
27
|
*/
|
|
28
|
-
previewButtonView:
|
|
28
|
+
previewButtonView: ButtonView;
|
|
29
29
|
/**
|
|
30
30
|
* The unlink button view.
|
|
31
31
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { icons } from 'ckeditor5/src/core.js';
|
|
11
|
+
import { ensureSafeUrl } from '../utils.js';
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type LinkCommand from '../linkcommand.js';
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { icons } from 'ckeditor5/src/core.js';
|
|
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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module link/unlinkcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The unlink command. It is used by the {@link module:link/link~Link link plugin}.
|
|
11
11
|
*/
|
package/src/unlinkcommand.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import { findAttributeRange } from 'ckeditor5/src/typing.js';
|
|
10
|
+
import { isLinkableElement } from './utils.js';
|
|
11
11
|
/**
|
|
12
12
|
* The unlink command. It is used by the {@link module:link/link~Link link plugin}.
|
|
13
13
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import type { DowncastDispatcher } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type { NormalizedLinkDecoratorAutomaticDefinition } from '../utils.js';
|
|
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.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module link/utils/automaticdecorators
|
|
7
7
|
*/
|
|
8
|
-
import { toMap } from 'ckeditor5/src/utils';
|
|
8
|
+
import { toMap } from 'ckeditor5/src/utils.js';
|
|
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.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import type { MatcherObjectPattern } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type { NormalizedLinkDecoratorManualDefinition } from '../utils.js';
|
|
11
11
|
declare const ManualDecorator_base: {
|
|
12
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
13
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
12
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
13
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Helper class that stores manual decorators with observable {@link module:link/utils/manualdecorator~ManualDecorator#value}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module link/utils/manualdecorator
|
|
7
7
|
*/
|
|
8
|
-
import { ObservableMixin } from 'ckeditor5/src/utils';
|
|
8
|
+
import { ObservableMixin } from 'ckeditor5/src/utils.js';
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
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.js';
|
|
9
|
+
import type { LocaleTranslate } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { LinkDecoratorAutomaticDefinition, LinkDecoratorDefinition, LinkDecoratorManualDefinition } from './linkconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* A keystroke used by the {@link module:link/linkui~LinkUI link UI feature}.
|
|
13
13
|
*/
|
package/src/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
import { upperFirst } from 'lodash-es';
|
package/theme/link.css
CHANGED
package/theme/linkactions.css
CHANGED
package/theme/linkform.css
CHANGED
package/theme/linkimage.css
CHANGED