text
should not be an obligatory property in MentionFeedObjectItem
type
#13550
Labels
domain:ts
package:mention
squad:features
Issue to be handled by the Features team.
type:task
This issue reports a chore (non-production change) and other types of "todos".
Milestone
📝 Details
In https://github.com/ckeditor/ckeditor5/blob/dd8827aac5e53fcd311982fbff70fc83fb0a4c3b/packages/ckeditor5-mention/src/mentionconfig.ts#L281,
text
is defined as an obligatory property inMentionFeedObjectItem
type. If you use a customItemRenderer
, it isn't necessary though - you can use other properties to derive the output HTML element. This is done e.g. in the manual test.This is a soft blocker for the feature customisation written in TS. It requires using double casting the callbacks through type
unknown
when passingmention.feeds.feed
andmentions.feeds.itemRenderer
properties:The text was updated successfully, but these errors were encountered: