@ckeditor/ckeditor5-link 33.0.0 → 34.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 +2 -1
- package/build/link.js +1 -1
- package/build/link.js.map +1 -1
- package/build/translations/hr.js +1 -1
- package/lang/translations/hr.po +1 -1
- package/package.json +21 -21
- package/src/linkediting.js +9 -3
- package/src/utils/automaticdecorators.js +7 -1
package/build/translations/hr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(i){const n=i.hr=i.hr||{};n.dictionary=Object.assign(n.dictionary||{},{Downloadable:"Moguće preuzeti","Edit link":"Uredi vezu",Link:"Veza","Link image":"","Link URL":"URL veze","Open in a new tab":"Otvori u novoj kartici","Open link in new tab":"Otvori vezu u novoj kartici","This link has no URL":"Ova veza nema URL",Unlink:"Ukloni vezu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(i){const n=i.hr=i.hr||{};n.dictionary=Object.assign(n.dictionary||{},{Downloadable:"Moguće preuzeti","Edit link":"Uredi vezu",Link:"Veza","Link image":"URL slike","Link URL":"URL veze","Open in a new tab":"Otvori u novoj kartici","Open link in new tab":"Otvori vezu u novoj kartici","This link has no URL":"Ova veza nema URL",Unlink:"Ukloni vezu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
package/lang/translations/hr.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-link",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.0.0",
|
|
4
4
|
"description": "Link feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,29 +12,29 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "^
|
|
16
|
-
"ckeditor5": "^
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "^34.0.0",
|
|
16
|
+
"ckeditor5": "^34.0.0",
|
|
17
17
|
"lodash-es": "^4.17.15"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
21
|
-
"@ckeditor/ckeditor5-block-quote": "^
|
|
22
|
-
"@ckeditor/ckeditor5-clipboard": "^
|
|
23
|
-
"@ckeditor/ckeditor5-cloud-services": "^
|
|
24
|
-
"@ckeditor/ckeditor5-code-block": "^
|
|
25
|
-
"@ckeditor/ckeditor5-core": "^
|
|
26
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
27
|
-
"@ckeditor/ckeditor5-easy-image": "^
|
|
28
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "^
|
|
30
|
-
"@ckeditor/ckeditor5-enter": "^
|
|
31
|
-
"@ckeditor/ckeditor5-image": "^
|
|
32
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
33
|
-
"@ckeditor/ckeditor5-theme-lark": "^
|
|
34
|
-
"@ckeditor/ckeditor5-typing": "^
|
|
35
|
-
"@ckeditor/ckeditor5-undo": "^
|
|
36
|
-
"@ckeditor/ckeditor5-utils": "^
|
|
37
|
-
"@ckeditor/ckeditor5-widget": "^
|
|
20
|
+
"@ckeditor/ckeditor5-basic-styles": "^34.0.0",
|
|
21
|
+
"@ckeditor/ckeditor5-block-quote": "^34.0.0",
|
|
22
|
+
"@ckeditor/ckeditor5-clipboard": "^34.0.0",
|
|
23
|
+
"@ckeditor/ckeditor5-cloud-services": "^34.0.0",
|
|
24
|
+
"@ckeditor/ckeditor5-code-block": "^34.0.0",
|
|
25
|
+
"@ckeditor/ckeditor5-core": "^34.0.0",
|
|
26
|
+
"@ckeditor/ckeditor5-dev-utils": "^30.0.0",
|
|
27
|
+
"@ckeditor/ckeditor5-easy-image": "^34.0.0",
|
|
28
|
+
"@ckeditor/ckeditor5-editor-classic": "^34.0.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "^34.0.0",
|
|
30
|
+
"@ckeditor/ckeditor5-enter": "^34.0.0",
|
|
31
|
+
"@ckeditor/ckeditor5-image": "^34.0.0",
|
|
32
|
+
"@ckeditor/ckeditor5-paragraph": "^34.0.0",
|
|
33
|
+
"@ckeditor/ckeditor5-theme-lark": "^34.0.0",
|
|
34
|
+
"@ckeditor/ckeditor5-typing": "^34.0.0",
|
|
35
|
+
"@ckeditor/ckeditor5-undo": "^34.0.0",
|
|
36
|
+
"@ckeditor/ckeditor5-utils": "^34.0.0",
|
|
37
|
+
"@ckeditor/ckeditor5-widget": "^34.0.0",
|
|
38
38
|
"webpack": "^5.58.1",
|
|
39
39
|
"webpack-cli": "^4.9.0"
|
|
40
40
|
},
|
package/src/linkediting.js
CHANGED
|
@@ -193,8 +193,13 @@ export default class LinkEditing extends Plugin {
|
|
|
193
193
|
|
|
194
194
|
editor.conversion.for( 'downcast' ).attributeToElement( {
|
|
195
195
|
model: decorator.id,
|
|
196
|
-
view: (
|
|
197
|
-
|
|
196
|
+
view: ( manualDecoratorValue, { writer, schema }, { item } ) => {
|
|
197
|
+
// Manual decorators for block links are handled e.g. in LinkImageEditing.
|
|
198
|
+
if ( !schema.isInline( item ) ) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if ( manualDecoratorValue ) {
|
|
198
203
|
const element = writer.createAttributeElement( 'a', decorator.attributes, { priority: 5 } );
|
|
199
204
|
|
|
200
205
|
if ( decorator.classes ) {
|
|
@@ -209,7 +214,8 @@ export default class LinkEditing extends Plugin {
|
|
|
209
214
|
|
|
210
215
|
return element;
|
|
211
216
|
}
|
|
212
|
-
}
|
|
217
|
+
}
|
|
218
|
+
} );
|
|
213
219
|
|
|
214
220
|
editor.conversion.for( 'upcast' ).elementToAttribute( {
|
|
215
221
|
view: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -66,6 +66,12 @@ export default class AutomaticDecorators {
|
|
|
66
66
|
if ( !conversionApi.consumable.test( data.item, 'attribute:linkHref' ) ) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
// Automatic decorators for block links are handled e.g. in LinkImageEditing.
|
|
71
|
+
if ( !( data.item.is( 'selection' ) || conversionApi.schema.isInline( data.item ) ) ) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
69
75
|
const viewWriter = conversionApi.writer;
|
|
70
76
|
const viewSelection = viewWriter.document.selection;
|
|
71
77
|
|