Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for CKEditor for Craft CMS

## Unreleased

- Fixed a bug where downloadable links’ `download` attributes were sometimes getting set to the value `"true"`. ([#606](https://github.com/craftcms/ckeditor/issues/606))

## 5.6.1 - 2026-05-13

- Fixed errors that could occur if the `ckeditor_references` table didn’t exist yet. ([#584](https://github.com/craftcms/ckeditor/issues/584))
Expand Down
4 changes: 3 additions & 1 deletion src/web/assets/ckeditor/dist/ckeditor5-craftcms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/web/assets/ckeditor/src/link/linkediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export default class CraftLinkEditing extends Plugin {
writer.removeAttribute(item.model, writer.createRangeOn(node));
}
} else {
// one case where selection is considered not collapsed is when you highlight a text, add a link to it,
// and then click on the "edit link" icon without closing the balloon that you see after adding a link
const ranges = editor.model.schema.getValidRanges(
selection.getRanges(),
item.model,
Expand All @@ -133,7 +135,11 @@ export default class CraftLinkEditing extends Plugin {
if (extraAttributeValues[item.model]) {
writer.setAttribute(
item.model,
extraAttributeValues[item.model],
// for bool type options, if the value is set to true, set the attribute with empty value
// see https://github.com/craftcms/ckeditor/issues/606 for more info
item.type == 'bool' && item.value == true
? ''
: extraAttributeValues[item.model],
range,
);
} else {
Expand Down
Loading