Add error message when no entity is selected

Created on 18 June 2024, 6 months ago
Updated 2 July 2024, 6 months ago

Problem/Motivation

Error: Call to a member function hasLinkTemplate() on bool in ckeditor5_entity_browser_process_selected_content() (line 66 of /var/www/html/htdocs/modules/contrib/ckeditor5_entity_browser/ckeditor5_entity_browser.module)

You can now select no entities and this will result in the following error

Steps to reproduce

Open a entity browser in ckeditor5 and try to submit without selecting any entities.

Proposed resolution

Add the attached code to fix this issue and properly show an error when no entities are selected.

Remaining tasks

Review

User interface changes

None

API changes

None

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Remco Hoeneveld

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024