compose-rich-editor icon indicating copy to clipboard operation
compose-rich-editor copied to clipboard

Support callbacks for URLs

Open VIPlearner opened this issue 1 year ago • 4 comments

There needs to some sort of callback especially for links so that if users click on links we can trigger those callbacks to either open a browser or any app of choice Currently when you add a link it just gets added as another block of text with a blue colour

VIPlearner avatar Nov 26 '23 11:11 VIPlearner

Thanks for your feedback. I'll add a callback for links, but now it opens the link in the browser if you use a RichText, but for the editor it doesn't make to make the link clickable, that's how it works for the most rich text editors.

MohamedRejeb avatar Dec 03 '23 11:12 MohamedRejeb

Thanks for your feedback. I'll add a callback for links, but now it opens the link in the browser if you use a RichText, but for the editor it doesn't make to make the link clickable, that's how it works for the most rich text editors.

Hey, on Desktop it doesn't open it in the Browser

adambrangenberg avatar Jan 19 '24 23:01 adambrangenberg

I'm using Compose LocalUriHandler for opening the URL in the browser. Make sure that you have a default browser. Also, you should see the error in the logs if there's something wrong with opening the URL.

MohamedRejeb avatar Jan 21 '24 12:01 MohamedRejeb

Hmm okay, it's probably an issue with my machine then.

adambrangenberg avatar Jan 26 '24 21:01 adambrangenberg