React-rendered suggestion items #2900
Closed
ClementEXWiki
started this conversation in
Ideas & Enhancements
Replies: 1 comment
-
|
Actually I see it's easy to create a custom suggestion menu component, so I'm going to go ahead with it :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In our current editor (CKEditor), when the user types
img::, an inline suggestion menu opens, showing a list of images matching what the user types after that prefix, on top of an upload button.We'd like to mimic that behavior with BlockNote, but AFAIK it is only possible to render plain-text suggestions using the
SuggestionMenuController.Here is an example of what we'd like:
I tried forcing an
<img>element in thetitleproperty of the suggestion items, and they do render, but with the wrong height and width, leading to this abstract work of art:Is there any way to render images properly inside the menu? If not, would it be possible to add this feature?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions