Skip to content

Releases: CoreMedia/ckeditor-plugins

v14.1.0

07 Mar 08:37

Choose a tag to compare

What's Changed

New Feature: LinkAttributes

A new feature has been introduced to cope with issues while editing links having attributes not supported by corresponding editing actions.

More specifically, this applies to:

Rich Text Data View
xlink:actuate data-xlink-actuate
xlink:title title
xlink:type data-xlink-type

For details and recommended adjustment to your CKEditor 5 instance configuration, have a look at #141.

An update is recommended, as editing actions may otherwise trigger orphaned <a> elements mostly consisting only of one of these attributes (and empty href).

Bugfixes

  • Support for "unhandled link attributes" in #141

Documentation Updates

  • docs(link): Fixes Documentation Issues in #142

  • docs(ghpages): Fixes and Adjust READMEs in #143

    Straightens README.md especially regarding their links towards the corresponding API documentation.

Full Changelog: 14.0.2...14.1.0

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 36.0.1
CMCC (used by) 11.2210.3, 11.2301.2

v14.0.2

22 Feb 12:56

Choose a tag to compare

What's Changed

Bugfixes

  • Fix TypeError in ContentLinkActionsViewExtension (#139)

Full Changelog: 14.0.1...14.0.2

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 36.0.1
CMCC (used by) 11.2210.3

v14.0.1

22 Feb 09:25

Choose a tag to compare

What's Changed

Bugfixes

  • TypeError when opening and closing the image balloon fixed (#138)

Full Changelog: 14.0.0...14.0.1

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 36.0.1
CMCC (used by) 11.2210.3

v14.0.0

21 Feb 11:49

Choose a tag to compare

What's Changed

Changes

Bugfixes

  • Catch unwanted xlink-href attributes (#137)

Full Changelog: 12.0.0...14.0.0

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 36.0.1
CMCC (used by) 11.2210.3

v12.0.0

15 Feb 12:57

Choose a tag to compare

What's Changed

Changes

  • Introduce KeepOpen Elements for LinkBalloon (#135)

The ContentLinks plugin in the editor configuration now accepts a list of ids or classes, used to identify
DOM elements, for which the link balloon should not close when a click event occurs on them.
This is especially useful when opening ui elements via mouse click, after the balloon was opened.

  • Update and Align Engines for node.js and pnpm (#134)

Updated and aligned all engine requirements in package.json files to:

"engines": {
  "node": "18",
  "pnpm": "^7.26"
},

Bugfixes

  • DataProcessor: Fixes Debugging Output (#133)

Full Changelog: 11.0.2...11.1.0

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 35.4.0
CMCC (used by) 11.2210.3

v11.0.2

31 Jan 07:34

Choose a tag to compare

Upgrade

Data-Processing

As data processing changes as part of Data Processing Next Generation (#124), you may have to adapt your custom rules for processing. Using the new API is strongly recommended due to various benefits. If you consider keeping your old configuration, you may do so, by adding a compatibility flag to your configuration, like:

"coremedia:richtext": {
  // Trigger old configuration parsing
  compatibility: "v10",
  rules: {
    elements: {
      mark: replaceByElementAndClassBackAndForth("mark", "span", "mark"),
    },
  },
},

New processing for this example would look like this:

"coremedia:richtext": {
  // "latest" is the default, so you may skip it.
  compatibility: "latest",
  rules: [
    replaceElementByElementAndClass({
      viewLocalName: "mark",
      dataLocalName: "span",
      dataReservedClass: "mark",
    }),
  ],
},

What's Changed

Breaking Changes

  • Data Processing Next Generation (#124)

Changes

  • Data Processing Next Generation (#124)

    A new RichTextDataProcessor is now available, that ships by default with @coremedia/ckeditor5-coremedia-richtext. The old data-processing is still available as compatibility mode.

    Benefits of new data-processing:

    • Simpler concept like "Firewall Rules".

      Instead of having to deal with parent/child rules, you now add rules as an array, just as you would do with Firewall rules or mail-filter rules.

    • Pure DOM based manipulation during processing.

      Previously, only proxied access was possible with limited API only. The new API offers, for example, in processing stages close to the data view (HTML) the richer HTML DOM API such as HTMLElement.dataset.

    • More secure processing.

      As you may now use the richer DOM API, you may also rely on methods, which automatically ensure proper encoding. Again, HTMLElement.dataset may be an example, where you can now use element.dataset["customAttr"] instead of having to manually concatenate keys: element.attributes["data-custom-attr"].

    • Many levels of processing with clear contracts.

      Previously, all processing outside the well-paved paths was fragile, unless you knew what operations are allowed or not. Now you have access to different processing stages, and you may, if required, use priorities, if you want to ensure, some operations are done first.

    • Configuration API for Plugins

      Plugins may now add rules to the data-processing. This comes handy, for example, if you provide support for a new HTML element during editing as part of a plugin. A corresponding update of data-processing rules may look like this:

      afterInit(): void { 
         const { editor } = this; 
         const { processor } = editor.data; 
      
         if (isRichTextDataProcessor(processor)) { 
           processor.addRule(customElementRule); 
         } 
       } 
    • Faster processing: The performance of new data-processing increased.

  • Paste uses URIs instead of Bean References (#130)
    In previous versions ClipboardService did only contain bean references which had to be parsed to URIs. Since 11.2210.3 and 11.2301.1 the ClipboardService also contains the URIs. The usage of the ClipboardService has been adapted to use URIs. Therefore, 11.0.2 does only work with 11.2210.3 and 11.2301.1. See the compatibility matrix below.

Full Changelog: 10.5.0...11.0.2

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 35.4.0
CMCC (used by) 11.2210.3, 11.2301.1

v10.5.0

27 Jan 16:09

Choose a tag to compare

What's Changed

Changes

  • Changed Open Link Behavior in Read-Only Mode (#125)

In read-only mode, links did not open in a new tab but instead opened in same tab.
This can lead to losing context of the current browser tab by accidentally clicking on an editor link
New behavior in read-only mode is:
For Content Links a new tab in the work area is opened.
For external links the URL is opened in a new browser tab.

  • Accessibility Features for CoreMedia specific Plugins (#127)

Accessibility Features for CoreMedia specific plugins was added.
This includes missing tooltips, aria labels, keyboard navigation in the link balloon and shortcuts.
The following keyboard shortcuts have been added:
CTRL+SHIFT+O - Opens a selected image in a new tab
CTRL+SHIFT+P - Pastes contents from the clipboard into the editor

Full Changelog: 10.4.0...10.5.0

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 35.4.0
CMCC (used by) 11.2210.3

v10.4.0

11 Jan 17:20

Choose a tag to compare

What's Changed

Changes

  • Support for Input of External Content (#122)

    This change provides support for URIs from a third party system (like a commerce/shop system) that are known to the embedding system. Those external contents can be inserted into the editor (by dropping them into the editing view or link balloon) and will be imported into the embedding system, which means a representation is created.

    For example: Dropping a content item from the CoreMedia Studio's Content Hub or Commerce Hub will now result in a content import and creates a link to the imported content inside the editor.

Full Changelog: 10.3.0...10.4.0

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 35.4.0
CMCC (used by) 11.2210.2

v10.3.0

15 Dec 13:10

Choose a tag to compare

What's Changed

Changes

  • CKEditor updated to 35.4.0 (#123)
    CKEditor has been updated to 35.4.0. For further information: https://github.com/ckeditor/ckeditor5/releases/tag/v35.4.0
  • Enable additional CKEditor 5 Plugins (#123)
    The following plugins have been enabled in the Example-App: Code Plugin, Autoformat Plugin, FindAndReplace Plugin, ImageTextAlternative

Full Changelog: 10.2.1...10.3.0

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 35.4.0
CMCC (used by) 11.2210.2

v10.2.1

28 Oct 12:08

Choose a tag to compare

What's Changed

Bugfixes

  • Paste Button: Handle expanded ranges (#119)
    When inserting content while having an uncollapsed selection in the editor, the selected contents will now be removed accordingly.

Full Changelog: 10.2.0...10.2.1

Compatibility Matrix

Artifact Version
CKEditor 5 (peer) 35.2.0
CMCC (used by) 11.2210.1