2

i'm using ckeditor5 on react, and i want to achieve this: i have list with keys and values - for example:

[{id: "@key1", value: "value1}, {id: "@key2", value: "value2"}]

and i want that when the editor is focused - the text shown will be @keyX, but when the editor is blurred - the text shown will be valueX.

i've tried multiple way with the helps of the docs here, but no good.

any idea? any help (even saying - "it is not possible") will be mostly welcome!!!

drizzt13
  • 630
  • 6
  • 15

1 Answers1

2

Try {id: "@key1", text: "value1}

As per: https://ckeditor.com/docs/ckeditor5/latest/api/module_mention_mention-MentionFeedItem.html

Paul Roub
  • 36,322
  • 27
  • 84
  • 93
Latos
  • 31
  • 2