@ckeditor/ckeditor5-link 48.3.1 → 48.4.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/dist/index-content.css +3 -0
- package/dist/index-content.css.map +1 -0
- package/dist/index-editor.css +133 -131
- package/dist/index-editor.css.map +1 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +76 -6
- package/dist/index.js.map +1 -1
- package/dist/linkediting.d.ts +0 -1
- package/dist/linkimage.d.ts +0 -1
- package/dist/linkui.d.ts +12 -1
- package/dist/ui/linkformview.d.ts +19 -1
- package/dist/ui/linkpropertiesview.d.ts +0 -1
- package/dist/ui/linkprovideritemsview.d.ts +0 -1
- package/package.json +11 -11
package/dist/linkediting.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
import { Input, TwoStepCaretMovement } from "@ckeditor/ckeditor5-typing";
|
|
10
10
|
import { ClipboardPipeline } from "@ckeditor/ckeditor5-clipboard";
|
|
11
|
-
import "../theme/link.css";
|
|
12
11
|
/**
|
|
13
12
|
* The link engine feature.
|
|
14
13
|
*
|
package/dist/linkimage.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
import { LinkImageEditing } from "./linkimageediting.js";
|
|
10
10
|
import { LinkImageUI } from "./linkimageui.js";
|
|
11
|
-
import "../theme/linkimage.css";
|
|
12
11
|
/**
|
|
13
12
|
* The `LinkImage` plugin.
|
|
14
13
|
*
|
package/dist/linkui.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { LinkEditing } from "./linkediting.js";
|
|
|
11
11
|
import { LinkFormView } from "./ui/linkformview.js";
|
|
12
12
|
import { LinkProviderItemsView } from "./ui/linkprovideritemsview.js";
|
|
13
13
|
import { LinkPropertiesView } from "./ui/linkpropertiesview.js";
|
|
14
|
-
import "../theme/linktoolbar.css";
|
|
15
14
|
/**
|
|
16
15
|
* The link UI plugin. It introduces the `'link'` and `'unlink'` buttons and support for the <kbd>Ctrl+K</kbd> keystroke.
|
|
17
16
|
*
|
|
@@ -107,6 +106,18 @@ export declare class LinkUI extends Plugin {
|
|
|
107
106
|
*/
|
|
108
107
|
private _getDecoratorSwitchesState;
|
|
109
108
|
/**
|
|
109
|
+
* Toggles the state of a manual decorator while a new link is being created, that is, before it is
|
|
110
|
+
* inserted into the document. Since there is no link (and no command value) to execute the `'link'`
|
|
111
|
+
* command against yet, the new state is kept on the decorator's own observable
|
|
112
|
+
* {@link module:link/utils/manualdecorator~LinkManualDecorator#value} instead of the model.
|
|
113
|
+
*/
|
|
114
|
+
private _togglePendingManualDecorator;
|
|
115
|
+
/**
|
|
116
|
+
* Clears the state of all manual decorators that may have been toggled while creating a link that,
|
|
117
|
+
* in the end, was never inserted into the document (for example, the user canceled the form).
|
|
118
|
+
*/
|
|
119
|
+
private _resetPendingManualDecoratorsState;
|
|
120
|
+
/**
|
|
110
121
|
* Registers listeners used in editing plugin, used to open links.
|
|
111
122
|
*/
|
|
112
123
|
private _registerEditingOpeners;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ButtonView, LabeledFieldView, View, ViewCollection, type InputTextView } from "@ckeditor/ckeditor5-ui";
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
-
import "../../theme/linkform.css";
|
|
11
10
|
/**
|
|
12
11
|
* The link form view.
|
|
13
12
|
*/
|
|
@@ -29,6 +28,11 @@ export declare class LinkFormView extends View {
|
|
|
29
28
|
*/
|
|
30
29
|
saveButtonView: ButtonView;
|
|
31
30
|
/**
|
|
31
|
+
* A button that opens the {@link module:link/ui/linkpropertiesview~LinkPropertiesView} allowing the user to
|
|
32
|
+
* configure manual decorators for the link handled by this form.
|
|
33
|
+
*/
|
|
34
|
+
manualDecoratorsButtonView: ButtonView;
|
|
35
|
+
/**
|
|
32
36
|
* The "Displayed text" input view.
|
|
33
37
|
*/
|
|
34
38
|
displayedTextInputView: LabeledFieldView<InputTextView>;
|
|
@@ -97,6 +101,10 @@ export declare class LinkFormView extends View {
|
|
|
97
101
|
*/
|
|
98
102
|
private _createSaveButton;
|
|
99
103
|
/**
|
|
104
|
+
* Creates a button that opens the link properties view.
|
|
105
|
+
*/
|
|
106
|
+
private _createManualDecoratorsButton;
|
|
107
|
+
/**
|
|
100
108
|
* Creates a header view for the form.
|
|
101
109
|
*/
|
|
102
110
|
private _createHeaderView;
|
|
@@ -152,3 +160,13 @@ export type LinkFormCancelEvent = {
|
|
|
152
160
|
name: "cancel";
|
|
153
161
|
args: [];
|
|
154
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* Fired when the {@link ~LinkFormView#manualDecoratorsButtonView} is pressed, requesting the link properties
|
|
165
|
+
* (manual decorators) view to be displayed.
|
|
166
|
+
*
|
|
167
|
+
* @eventName ~LinkFormView#showDecorators
|
|
168
|
+
*/
|
|
169
|
+
export type LinkFormShowDecoratorsEvent = {
|
|
170
|
+
name: "showDecorators";
|
|
171
|
+
args: [];
|
|
172
|
+
};
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ButtonView, View, ViewCollection, type SwitchButtonView } from "@ckeditor/ckeditor5-ui";
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
-
import "../../theme/linkproperties.css";
|
|
11
10
|
/**
|
|
12
11
|
* The link properties view controller class.
|
|
13
12
|
*
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ButtonView, View, ListView, ViewCollection } from "@ckeditor/ckeditor5-ui";
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
-
import "../../theme/linkprovideritems.css";
|
|
11
10
|
/**
|
|
12
11
|
* The link provider items view.
|
|
13
12
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-link",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.4.0-alpha.0",
|
|
4
4
|
"description": "Link feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ckeditor/ckeditor5-clipboard": "48.
|
|
30
|
-
"@ckeditor/ckeditor5-core": "48.
|
|
31
|
-
"@ckeditor/ckeditor5-engine": "48.
|
|
32
|
-
"@ckeditor/ckeditor5-enter": "48.
|
|
33
|
-
"@ckeditor/ckeditor5-icons": "48.
|
|
34
|
-
"@ckeditor/ckeditor5-image": "48.
|
|
35
|
-
"@ckeditor/ckeditor5-typing": "48.
|
|
36
|
-
"@ckeditor/ckeditor5-ui": "48.
|
|
37
|
-
"@ckeditor/ckeditor5-utils": "48.
|
|
38
|
-
"@ckeditor/ckeditor5-widget": "48.
|
|
29
|
+
"@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.0",
|
|
30
|
+
"@ckeditor/ckeditor5-core": "48.4.0-alpha.0",
|
|
31
|
+
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.0",
|
|
32
|
+
"@ckeditor/ckeditor5-enter": "48.4.0-alpha.0",
|
|
33
|
+
"@ckeditor/ckeditor5-icons": "48.4.0-alpha.0",
|
|
34
|
+
"@ckeditor/ckeditor5-image": "48.4.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-typing": "48.4.0-alpha.0",
|
|
36
|
+
"@ckeditor/ckeditor5-ui": "48.4.0-alpha.0",
|
|
37
|
+
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.0",
|
|
38
|
+
"@ckeditor/ckeditor5-widget": "48.4.0-alpha.0",
|
|
39
39
|
"es-toolkit": "1.45.1"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|