Skip to content

Commit

Permalink
Docs: adding image changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
godai78 committed Sep 19, 2023
1 parent 26b2004 commit f62ccc6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/updating/update-to-40.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
category: update-guides
meta-title: Update to version 40.x | CKEditor 5 Documentation
menu-title: Update to v40.x
order: 85
order: 84
modified_at: 2023-09-13
---

Expand All @@ -16,8 +16,16 @@ modified_at: 2023-09-13

## Update to CKEditor 5 v40.0.0

For the entire list of changes introduced in version 39.0.0, see the [release notes for CKEditor 5 v40.0.0](https://github.com/ckeditor/ckeditor5/releases/tag/v40.0.0).
For the entire list of changes introduced in version 40.0.0, see the [release notes for CKEditor 5 v40.0.0](https://github.com/ckeditor/ckeditor5/releases/tag/v40.0.0).

Listed below are the most important changes that require your attention when upgrading to CKEditor 5 v40.0.0.

### New lists feasture
### Changes to the image feature

This release introduces changes connected with the image `width` and `height` attributes. These are now preserved while loading editor content. Images without their size specified will automatically gain natural image size on any interaction with the image within the editor. Due to this new behavior, the `width` and `height` attributes are now used to preserve the image's natural width and height and the model attribute name of a resized image is now changed to `resizedWidth`.

Also, the `srcset` model attribute which provides parameters for responsive images, has been simplified. It is no longer an object `{ data: "...", width: "..." }`, but the value that was previously stored in the `data` part.

Both of these are major breaking changes.

### New lists feature

0 comments on commit f62ccc6

Please sign in to comment.