@ckeditor/ckeditor5-media-embed 0.0.0-nightly-next-20250225.0 → 0.0.0-nightly-next-20250226.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.
Potentially problematic release.
This version of @ckeditor/ckeditor5-media-embed might be problematic. Click here for more details.
- package/build/media-embed.js +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/lang/contexts.json +1 -0
- package/package.json +11 -11
- package/src/mediaembedui.js +3 -2
package/lang/contexts.json
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
"The URL must not be empty.": "An error message that informs about an empty value in the URL input.",
|
7
7
|
"This media URL is not supported.": "An error message that informs about unsupported media URL.",
|
8
8
|
"Insert media": "Toolbar button tooltip for the Media Embed feature.",
|
9
|
+
"Media embed": "The label for the Media Embed balloon.",
|
9
10
|
"Media": "Label describing type of the inserted content (e.g. 'insert media').",
|
10
11
|
"Media toolbar": "The label used by assistive technologies describing an image toolbar attached to an image widget.",
|
11
12
|
"Open media in new tab": "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-media-embed",
|
3
|
-
"version": "0.0.0-nightly-next-
|
3
|
+
"version": "0.0.0-nightly-next-20250226.0",
|
4
4
|
"description": "Media embed feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -13,16 +13,16 @@
|
|
13
13
|
"type": "module",
|
14
14
|
"main": "src/index.js",
|
15
15
|
"dependencies": {
|
16
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-
|
17
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-
|
18
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-
|
19
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
20
|
-
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-next-
|
21
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
22
|
-
"@ckeditor/ckeditor5-undo": "0.0.0-nightly-next-
|
23
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
24
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-
|
25
|
-
"ckeditor5": "0.0.0-nightly-next-
|
16
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20250226.0",
|
17
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250226.0",
|
18
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20250226.0",
|
19
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250226.0",
|
20
|
+
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-next-20250226.0",
|
21
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250226.0",
|
22
|
+
"@ckeditor/ckeditor5-undo": "0.0.0-nightly-next-20250226.0",
|
23
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250226.0",
|
24
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20250226.0",
|
25
|
+
"ckeditor5": "0.0.0-nightly-next-20250226.0"
|
26
26
|
},
|
27
27
|
"author": "CKSource (http://cksource.com/)",
|
28
28
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/mediaembedui.js
CHANGED
@@ -77,6 +77,7 @@ export default class MediaEmbedUI extends Plugin {
|
|
77
77
|
const dialog = editor.plugins.get('Dialog');
|
78
78
|
const command = editor.commands.get('mediaEmbed');
|
79
79
|
const t = editor.locale.t;
|
80
|
+
const isMediaSelected = command.value !== undefined;
|
80
81
|
if (!this._formView) {
|
81
82
|
const registry = editor.plugins.get(MediaEmbedEditing).registry;
|
82
83
|
this._formView = new (CssTransitionDisablerMixin(MediaFormView))(getFormValidators(editor.t, registry), editor.locale);
|
@@ -84,7 +85,7 @@ export default class MediaEmbedUI extends Plugin {
|
|
84
85
|
}
|
85
86
|
dialog.show({
|
86
87
|
id: 'mediaEmbed',
|
87
|
-
title: t('
|
88
|
+
title: t('Media embed'),
|
88
89
|
content: this._formView,
|
89
90
|
isModal: true,
|
90
91
|
onShow: () => {
|
@@ -99,7 +100,7 @@ export default class MediaEmbedUI extends Plugin {
|
|
99
100
|
onExecute: () => dialog.hide()
|
100
101
|
},
|
101
102
|
{
|
102
|
-
label: t('
|
103
|
+
label: isMediaSelected ? t('Save') : t('Insert'),
|
103
104
|
class: 'ck-button-action',
|
104
105
|
withText: true,
|
105
106
|
onExecute: () => this._handleSubmitForm()
|