Skip to content

Commit

Permalink
4.0.0-beta.6 - support EVENT_REGISTER_NESTED_ENTRY_FIELD_TYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 15, 2024
1 parent 94f8603 commit 587c03c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 37 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for CKEditor for Craft CMS

## 4.0.0-beta.6 - 2024-02-15

- CKEditor now requires Craft CMS 5.0.0-beta.2 or later.
- Added support for querying and mutating nested etries within CKEditor fields via GraphQL directly. ([craftcms/cms#14366](https://github.com/craftcms/cms/pull/14366))

## 4.0.0-beta.5 - 2024-02-10

- Fixed a bug where CKEditor field values were displaying as `[]` within element tables and cards, and GraphQL results. ([#163](https://github.com/craftcms/ckeditor/issues/163), [#164](https://github.com/craftcms/ckeditor/issues/164))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This plugin adds a “CKEditor” field type to Craft CMS, which provides a deep

## Requirements

This plugin requires Craft CMS 5.0.0-beta.1 or later.
This plugin requires Craft CMS 5.0.0-beta.2 or later.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prefer-stable": true,
"require": {
"php": "^8.2",
"craftcms/cms": "^5.0.0-beta.1",
"craftcms/cms": "^5.0.0-beta.2",
"craftcms/html-field": "^3.0.0-alpha",
"nystudio107/craft-code-editor": ">=1.0.8 <=1.0.13 || ^1.0.16"
},
Expand Down
70 changes: 35 additions & 35 deletions composer.lock

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

4 changes: 4 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public function init()
$event->types[] = Field::class;
});

Event::on(Fields::class, Fields::EVENT_REGISTER_NESTED_ENTRY_FIELD_TYPES, function(RegisterComponentTypesEvent $event) {
$event->types[] = Field::class;
});

Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function(RegisterUrlRulesEvent $event) {
$event->rules += [
'settings/ckeditor' => 'ckeditor/cke-configs/index',
Expand Down

0 comments on commit 587c03c

Please sign in to comment.