Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Discovered at https://git.drupalcode.org/project/drupal/-/merge_requests/2310/diffs#no..., while working on #3273983: Do not assume that plugin supporting <tag attr> also supports <tag> in SourceEditingRedundantTags and upgrade path.
Steps to reproduce
N/A
Proposed resolution
Update CKEditor5PluginDefinition::getElements()
to match ::getConditions()
, ::getLibrary()
and ::getAdminLibrary()
Remaining tasks
Do it.
User interface changes
None.
API changes
CKEditor5PluginDefinition::getElements()
no longer can return false|string[]
, but always string[]
. It may now throw a \LogicException
.
Data model changes
None.
Release notes snippet
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | 3283776-2.patch | 1.53 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
lauriiiThis would indeed make
::getElements
more consistent with::getLibrary
,::getAdminLibrary
,::getCreatableElements
, and::getConditions
which I raised on the comment linked in the IS. +1 for this.Comment #5
catchSeems OK to do this small clean-up while ckeditor is still in beta.
Committed/pushed to 10.1.x, cherry-picked to 10.0.x and 9.5.x, thanks!
Comment #6
Wim LeersMany thanks!
Comment #8
Wim LeersCKEditor 5 is experimental in
9.4.x
. We should backport this change to9.4.x
.Comment #9
Wim LeersComment #10
alexpottCommitted c766b87 and pushed to 9.4.x. Thanks!