category | menu-title | order | modified_at |
---|---|---|---|
update-guides |
Update to v39.x |
85 |
2023-07-31 |
For custom builds, you may try removing the `package-lock.json` or `yarn.lock` files (if applicable) and reinstalling all packages before rebuilding the editor. For best results, make sure you use the most recent package versions.
For the entire list of changes introduced in version 39.0.0, see the release notes for CKEditor 5 v39.0.0.
Listed below are the most important changes that require your attention when upgrading to CKEditor 5 v38.2.0.
Starting with CKEditor 5 v39.0.0, {@link features/tables-styling table styling tools} will display a color picker in their user interfaces for color-related text fields.
Just like with {@link updating/update-to-38#introduction-of-color-pickers-to-font-color-and-font-background-color-features the introduction of color pickers to font color and font background color features}, we allow you to decide whether this new functionality works for your integration and to opt–out of it.
You can set {@link module:table/tableconfigTablePropertiesConfig#colorPicker} and {@link module:table/tableconfigTableCellPropertiesConfig#colorPicker} configuration options to false
to get rid of color pickers in all table styling tools:
ClassicEditor
.create( document.querySelector( '#editor' ), {
table: {
/* ... */
tableProperties: {
// Disable the color picker for the table properties feature.
colorPicker: false
},
tableCellProperties: {
// Disable the color picker for the table cell properties feature.
colorPicker: false
}
}
toolbar: [
'heading', 'bulletedList', 'numberedList', 'fontColor', 'fontBackgroundColor', 'insertTable', 'undo', 'redo'
]
} )
.then( /* ... */ )
.catch( /* ... */ );
The @ckeditor/ckeditor5-cbox
package now solely operates with the CKBox library version 2.0.0
or higher. Ensure you have the following script tag set in your HTML to load the correct version:
<script src="https://cdn.ckbox.io/CKBox/2.0.0/ckbox.js"></script>
The CKBox backend has been released in version 2.0.0. For users operating the on-premise version of the CKBox backend, it's essential to update to this version to ensure compatibility.
Moreover, the editor configuration parameter ckbox.assetsOrigin
, commonly used with the on-premise version, is no longer necessary. This is because the plugin no longer constructs asset URLs on its own but instead uses those provided directly by the backend. Therefore, you should remove the ckbox.assetsOrigin
parameter from your editor configuration.
ClassicEditor
.create( document.querySelector( '#editor' ), {
/* ... */
// CKBox configuration parameters.
ckbox: {
serviceOrigin: 'https://your-service-origin.com',
// This parameter is no longer needed and should be removed.
assetsOrigin: 'https://your-assets-origin.com'
}
} )