Skip to content

Commit

Permalink
Merge pull request #289 from craftcms/feature/284-field-data-config-a…
Browse files Browse the repository at this point in the history
…ttribute

add data-config attr to the div containing input field
  • Loading branch information
brandonkelly authored Oct 19, 2024
2 parents 33db0b9 + 6c165e9 commit 1f625bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- The `ckeditor/convert/redactor` command now ensures that it’s being run interactively.
- CKEditor container divs now have `data-config` attributes, set to the CKEditor config’s handle. ([#284](https://github.com/craftcms/ckeditor/issues/284))
- Fixed a bug where page breaks were being lost.
- Fixed a bug where menus within overflown toolbar items weren’t fully visible. ([#286](https://github.com/craftcms/ckeditor/issues/286))

Expand Down
3 changes: 3 additions & 0 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ protected function inputHtml(mixed $value, ElementInterface $element = null): st
'class' => array_filter([
$this->showWordCount ? 'ck-with-show-word-count' : null,
]),
'data' => [
'config' => $this->ckeConfig,
],
]);
}

Expand Down

0 comments on commit 1f625bc

Please sign in to comment.