-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surface URI Click Callbacks for HTML Links #471
Comments
Thanks for opening this issue. Actually, it's possible to intercept Uri clicks, it's not straightforward though. It's listed in the documentation: https://mohamedrejeb.github.io/compose-rich-editor/links/#add-links val myUriHandler = remember {
object : UriHandler {
override fun openUri(uri: String) {
// Link clicked
}
}
}
CompositionLocalProvider(
LocalUriHandler provides myUriHandler,
) {
RichText()
} |
@MohamedRejeb thanks for the info, I saw one more issue, where this library is not able to render the text that is currently in between |
Currently, I'm skipping anything outside |
Title: Surface URI Click Callbacks for HTML Links
Problem:
RichText
currently opens HTML links directly in the browser.Requirement:
onUriClick
callback toRichText
.onUriClick
is not provided.Boolean
which decides whether to open URI or not.Benefits:
Code Location:
BasicRichText
orRichText
wheredetectTapGestures
handles link clicks.The text was updated successfully, but these errors were encountered: