BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Enable marks inside image caption

Open horacioh opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Currently the default image block treats caption as a string. this prevents users to add marks or links inside the image caption which might be relevant in some cases.

Describe the solution you'd like Because the image block is defined an blockContent, it would be interesting to treat the content of an image as inline and store it the same way a paragraph does store content. the only difference is that the image block will have to reserve a place for the image to be set in the document.

Describe alternatives you've considered I'm not sure if there's an alternative here, but I believe this will make the content of an image caption more richer. also we need to consider this when bringing content from other sources like HTML and Markdown. where the caption of an image might have marks included.

I have an implementation of an image component using the old custom block API that accomplish this.

horacioh avatar Jan 29 '24 12:01 horacioh

Did you find the way?

elfeffe avatar Jan 22 '25 02:01 elfeffe

tracking here: https://github.com/TypeCellOS/BlockNote/issues/1540

YousefED avatar Jun 20 '25 07:06 YousefED