You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just have small problem, I not sure it is a bug or rich-textarea is not support this feature yet. I just want to display image instead of url when user uploaded image, but rich-textarea is not display image problaly, I'm tried use CSS to style but not have much effort
Screen.Recording.2024-02-23.at.09.56.53.mov
I use regex to parse image url
constrenderer=createRegexRenderer([[HASHTAG_REG,({ children, key })=>(<spankey={key}className="text-blue-500">{children}</span>),],[URL_REG,({ children, key, value })=>(<akey={key}href={value}target="_blank"className="text-blue-500">{children}</a>),],[IMAGE_REG,({ children, key, value })=>(<imgkey={key}src={value}className="my-1 h-auto w-full object-cover"loading="lazy"decoding="async"/>),],]);
Thank you for your interest in my lib. Unfortunately, it's impossible for now because rich-textarea is built on textarea element and it can render only texts.
It's possible to support image, video, etc in #74 if many people requested, but it's not scheduled yet.
HI, thank for great library.
I'm just have small problem, I not sure it is a bug or
rich-textarea
is not support this feature yet. I just want to display image instead of url when user uploaded image, butrich-textarea
is not display image problaly, I'm tried use CSS to style but not have much effortScreen.Recording.2024-02-23.at.09.56.53.mov
I use regex to parse image url
And rich textarea component
The text was updated successfully, but these errors were encountered: