Contribution Date
Technology
Contribution Project
Contribution Details
Embedding media with CKEditor is selecting only 1 media item , this because in core/modules/media_library/src/Plugin/CKEditorPlugin/DrupalMediaLibrary.php file in getConfig(Editor $editor) function
$state = MediaLibraryState::create(
'media_library.opener.editor',
$media_type_ids,
reset($media_type_ids),
1,
['filter_format_id' => $editor->getFilterFormat()->id()]
);
media_library_remaining is hardcoded to 1 , i don't know this is intentionally hardcoded or not .
Suppose if user wants to upload multiple image then system will not gone allow, so instead of hardcoding to 1 we can set unlimited value for media_library_remaining so user can select images on the basis of their choice.
Contribution Issue Link
Contribution Link
Files count
1
Patches count
1