The Gin theme should automatically load extended styles for CKEditor5, including dark mode support:
This works well when CKEditor5 fields are present on the initially loaded page. However, when these fields are dynamically added via an AJAX callback, the styles are not loaded for unknown reasons.
That's what helped me:
/**
* Implements hook_library_info_alter().
*/
function YOUR_MODULE_library_info_alter(array &$libraries, string $extension): void {
if ($extension == 'core') {
$libraries['ckeditor5']['dependencies'][] = 'gin/ckeditor5';
}
}
The module uses the default image if the user has not uploaded one for the section:
// Default library image.
$img_path = $this->extensionListModule->getPath('section_library') . '/images/default.png';
If you don't upload an image for a section (this field is optional) then the image in the form of adding a section from the library looks broken:
Image style cannot be applied to an image that has not been added as an EntityFile to the site database and file system:
I think that the default image should not have an Image Style. It is necessary to leave the original from the module.
I encountered a similar issue on the project. This bug occurs when the tab name starts with a numeric value (e.g., "12 Days of Fitness"). The proposed changes in the merge request fix this issue.
I will add a temporary patch so it can be used on the project until the merge request is approved.
mamoruua β created an issue.
mamoruUA β made their first commit to this issueβs fork.
In the render array, besides items, there are also additional elements for the widget form. Therefore, Element::children function is not suitable in this case.