@ckeditor/ckeditor5-link 47.7.1-alpha.0 → 47.7.2-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-link",
3
- "version": "47.7.1-alpha.0",
3
+ "version": "47.7.2-alpha.0",
4
4
  "description": "Link 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": "47.7.1-alpha.0",
17
- "@ckeditor/ckeditor5-core": "47.7.1-alpha.0",
18
- "@ckeditor/ckeditor5-engine": "47.7.1-alpha.0",
19
- "@ckeditor/ckeditor5-icons": "47.7.1-alpha.0",
20
- "@ckeditor/ckeditor5-image": "47.7.1-alpha.0",
21
- "@ckeditor/ckeditor5-typing": "47.7.1-alpha.0",
22
- "@ckeditor/ckeditor5-ui": "47.7.1-alpha.0",
23
- "@ckeditor/ckeditor5-utils": "47.7.1-alpha.0",
24
- "@ckeditor/ckeditor5-widget": "47.7.1-alpha.0",
25
- "ckeditor5": "47.7.1-alpha.0",
16
+ "@ckeditor/ckeditor5-clipboard": "47.7.2-alpha.0",
17
+ "@ckeditor/ckeditor5-core": "47.7.2-alpha.0",
18
+ "@ckeditor/ckeditor5-engine": "47.7.2-alpha.0",
19
+ "@ckeditor/ckeditor5-icons": "47.7.2-alpha.0",
20
+ "@ckeditor/ckeditor5-image": "47.7.2-alpha.0",
21
+ "@ckeditor/ckeditor5-typing": "47.7.2-alpha.0",
22
+ "@ckeditor/ckeditor5-ui": "47.7.2-alpha.0",
23
+ "@ckeditor/ckeditor5-utils": "47.7.2-alpha.0",
24
+ "@ckeditor/ckeditor5-widget": "47.7.2-alpha.0",
25
+ "ckeditor5": "47.7.2-alpha.0",
26
26
  "es-toolkit": "1.39.5"
27
27
  },
28
28
  "author": "CKSource (http://cksource.com/)",
@@ -44,7 +44,8 @@ export class LinkCommand extends Command {
44
44
  const selection = model.document.selection;
45
45
  const selectedElement = selection.getSelectedElement() || first(selection.getSelectedBlocks());
46
46
  // A check for any integration that allows linking elements (e.g. `LinkImage`).
47
- // Currently the selection reads attributes from text nodes only. See #7429 and #7465.
47
+ // Currently the selection reads attributes from text nodes only.
48
+ // See https://github.com/ckeditor/ckeditor5/issues/7429 and https://github.com/ckeditor/ckeditor5/issues/7465.
48
49
  if (isLinkableElement(selectedElement, model.schema)) {
49
50
  this.value = selectedElement.getAttribute('linkHref');
50
51
  this.isEnabled = model.schema.checkAttribute(selectedElement, 'linkHref');
@@ -315,7 +316,8 @@ export class LinkCommand extends Command {
315
316
  const selection = model.document.selection;
316
317
  const selectedElement = selection.getSelectedElement();
317
318
  // A check for the `LinkImage` plugin. If the selection contains an element, get values from the element.
318
- // Currently the selection reads attributes from text nodes only. See #7429 and #7465.
319
+ // Currently the selection reads attributes from text nodes only.
320
+ // See https://github.com/ckeditor/ckeditor5/issues/7429 and https://github.com/ckeditor/ckeditor5/issues/7465.
319
321
  if (isLinkableElement(selectedElement, model.schema)) {
320
322
  return selectedElement.getAttribute(decoratorName);
321
323
  }
@@ -183,7 +183,7 @@ function downcastImageLinkManualDecorator(decorator) {
183
183
  .find((child) => child.is('element', 'a'));
184
184
  // The <a> element was removed by the time this converter is executed.
185
185
  // It may happen when the base `linkHref` and decorator attributes are removed
186
- // at the same time (see #8401).
186
+ // at the same time (see https://github.com/ckeditor/ckeditor5/issues/8401).
187
187
  if (!linkInImage) {
188
188
  return;
189
189
  }
@@ -234,7 +234,7 @@ function upcastImageLinkManualDecorator(editor, decorator) {
234
234
  const viewLink = data.viewItem;
235
235
  const imageInLink = imageUtils.findViewImgElement(viewLink);
236
236
  // We need to check whether an image is inside a link because the converter handles
237
- // only manual decorators for linked images. See #7975.
237
+ // only manual decorators for linked images. See https://github.com/ckeditor/ckeditor5/issues/7975.
238
238
  if (!imageInLink) {
239
239
  return;
240
240
  }
package/src/linkui.js CHANGED
@@ -123,7 +123,7 @@ export class LinkUI extends Plugin {
123
123
  */
124
124
  destroy() {
125
125
  super.destroy();
126
- // Destroy created UI components as they are not automatically destroyed (see ckeditor5#1341).
126
+ // Destroy created UI components as they are not automatically destroyed (see https://github.com/ckeditor/ckeditor5/issues/1341).
127
127
  if (this.propertiesView) {
128
128
  this.propertiesView.destroy();
129
129
  }
@@ -8,7 +8,7 @@
8
8
  import { ButtonView, ListView, ListItemView, FocusCycler, LabeledFieldView, FormHeaderView, FormRowView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui.js';
9
9
  import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
10
10
  import { IconPreviousArrow } from 'ckeditor5/src/icons.js';
11
- // See: #8833.
11
+ // See: https://github.com/ckeditor/ckeditor5/issues/8833.
12
12
  // eslint-disable-next-line ckeditor5-rules/ckeditor-imports
13
13
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
14
14
  // eslint-disable-next-line ckeditor5-rules/ckeditor-imports
@@ -20,7 +20,8 @@ export class UnlinkCommand extends Command {
20
20
  const selection = model.document.selection;
21
21
  const selectedElement = selection.getSelectedElement();
22
22
  // A check for any integration that allows linking elements (e.g. `LinkImage`).
23
- // Currently the selection reads attributes from text nodes only. See #7429 and #7465.
23
+ // Currently the selection reads attributes from text nodes only.
24
+ // See https://github.com/ckeditor/ckeditor5/issues/7429 and https://github.com/ckeditor/ckeditor5/issues/7465.
24
25
  if (isLinkableElement(selectedElement, model.schema)) {
25
26
  this.isEnabled = model.schema.checkAttribute(selectedElement, 'linkHref');
26
27
  }