Skip to content

Commit

Permalink
Fixed #197
Browse files Browse the repository at this point in the history
Resolves #206
  • Loading branch information
brandonkelly committed Apr 25, 2024
1 parent 5d67b21 commit b1acb15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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 front-end links included element reference URL fragments. ([#197](https://github.com/craftcms/ckeditor/issues/197))

## 4.0.3 - 2024-03-28

- Fixed a bug where the `ckeditor/convert` command wasn’t checking for and removing the old `configFile` Redactor setting. ([#199](https://github.com/craftcms/ckeditor/issues/199))
Expand Down
4 changes: 1 addition & 3 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public function getSettings(): array
public function normalizeValue(mixed $value, ?ElementInterface $element = null): mixed
{
if (!$this->isCpRequest()) {
$value = $this->prepValueForInput($value, $element);
$value = $this->_prepNestedEntriesForDisplay($value, $element?->siteId);
}

return parent::normalizeValue($value, $element);
Expand Down Expand Up @@ -1003,8 +1003,6 @@ protected function prepValueForInput($value, ?ElementInterface $element, bool $s
// Redactor to CKEditor syntax for <figure>
// (https://github.com/craftcms/ckeditor/issues/96)
$value = $this->_normalizeFigures($value);

$value = $this->_prepNestedEntriesForDisplay($value, $element?->siteId, $static);
}

return parent::prepValueForInput($value, $element);
Expand Down

0 comments on commit b1acb15

Please sign in to comment.