Use the Entity Browser Label as default button label

Created on 8 July 2024, 5 months ago
Updated 9 July 2024, 5 months ago

Problem/Motivation

Want to have the label created from Entity Browsers instead of "Select content"

Steps to reproduce

Enable this module. Enable the Linkit module and configure it for Full HTML or any Text formats. In the Text formats, select the entity browser. Open the create/edit content and in body field, click on Linkit. This will show the label 'Select content' which comes from code from this file. ckeditor5_entity_browser\src\Plugin\CKEditor5Plugin\CkeditorEntityBrowser.php

Proposed resolution

Change the following line 142 on the file ckeditor5_entity_browser\src\Plugin\CKEditor5Plugin\CkeditorEntityBrowser.php.

Current code: 'label' => $this->t('Select content'),
Proposed code: 'label' => $entity_browser_entity->label,

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Revathidinesh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024