Skip to content

Commit

Permalink
Finish 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 8, 2022
1 parent 9081958 commit 00feb00
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Release Notes for CKEditor for Craft CMS

## 1.2.0 - 2022-02-08

### Added
- Added support for CKEditor 4’s [file manager integration](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_file_browse_upload.html). ([#11](https://github.com/craftcms/ckeditor/issues/11))
- Added the “Show unpermitted volumes” field setting (CKEditor 4 only).
- Added the “Available unpermitted files” field setting (CKEditor 4 only).
- Added the “Available Volumes” field setting (CKEditor 4 only).
- Added the “Available Transforms” field setting (CKEditor 4 only).
- Added the “Default Transform” field setting (CKEditor 4 only).
- CKEditor fields now convert static element URLs to reference tags on save.

### Changed
- CKEditor now requires Craft 3.7.31 or later.
- The “Initialization Code” field setting now auto-expands its height to fit the contents.
- Custom initialization code can now reference `language`, `filebrowserBrowseUrl`, and `filebrowserImageBrowseUrl` constants, which are predefined.
- It’s now possible to include SVG images within field values, without them being removed by HTML Purifier. They will be sanitized with SVG Sanitizer instead.
- CKEditor 5 32.0.0 is now used by default, if a custom CKEditor Build URL hasn’t been set.

## 1.1.2 - 2021-05-01

### Changed
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This plugin adds a “CKEditor” field type to Craft CMS, which provides a wrap

## Requirements

This plugin requires Craft CMS 3.6 or later.
This plugin requires Craft CMS 3.7.31 or later.

## Installation

Expand Down Expand Up @@ -49,14 +49,16 @@ Reference the source `<textarea>` element’s ID using “`__EDITOR__`”, and b
```js
// CKEditor 4
return CKEDITOR.replace('__EDITOR__', {
language: Craft.language.toLowerCase(),
language,
filebrowserBrowseUrl, // CKE4 only
filebrowserImageBrowseUrl, // CKE4 only
// ...
});

// CKEditor 5
return await ClassicEditor
.create(document.querySelector('#__EDITOR__'), {
language: Craft.language.toLowerCase(),
language,
// ...
});
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "craftcms/ckeditor",
"description": "Edit rich text content in Craft CMS using CKEditor.",
"version": "1.1.2",
"version": "1.2.0",
"type": "craft-plugin",
"keywords": [
"html",
Expand Down

0 comments on commit 00feb00

Please sign in to comment.