Skip to content

Commit

Permalink
Merge pull request #196 from craftcms/bugfix/195-ckeconfig-missing-as…
Browse files Browse the repository at this point in the history
…sets-btn

add missing assetSources config
  • Loading branch information
brandonkelly authored Mar 19, 2024
2 parents 2ed82f5 + 53e2c76 commit 24df2f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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 the “Insert image” toolbar button wasn’t available when editing CKEditor configs. ([#195](https://github.com/craftcms/ckeditor/issues/195))

## 4.0.1 - 2024-03-15

- Fixed an error that could occur when editing an entry with nested CKEditor entries that used a soft-deleted entry type. ([#191](https://github.com/craftcms/ckeditor/issues/191))
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/ckeconfig/dist/ckeconfig.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/ckeconfig/dist/ckeconfig.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/web/assets/ckeconfig/src/ToolbarBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default Garnish.Base.extend({
CKEditor5.craftcms
.create(editorElement, {
linkOptions: [{elementType: 'craft\\elements\\Asset'}],
assetSources: ['*'],
entryTypeOptions: [{label: 'fake', value: 'fake'}],
})
.then((editor) => {
Expand Down

0 comments on commit 24df2f2

Please sign in to comment.