Skip to content

Commit

Permalink
4.0.0-beta.9 - Fixed rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 8, 2024
1 parent 9b49df5 commit d0102fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 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

## 4.0.0-beta.9 - 2024-03-08

- Fixed a bug where nested entries weren’t getting rendered in front-end output.

## 4.0.0-beta.8 - 2024-03-07

- CKEditor fields now support multiple instances. ([#188](https://github.com/craftcms/ckeditor/pull/188))
Expand Down
12 changes: 12 additions & 0 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,18 @@ public function getSettings(): array
return $settings;
}

/**
* @inheritdoc
*/
public function normalizeValue(mixed $value, ?ElementInterface $element = null): mixed
{
if (!$this->isCpRequest()) {
$value = $this->prepValueForInput($value, $element);
}

return parent::normalizeValue($value, $element);
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit d0102fa

Please sign in to comment.