Skip to content

Commit

Permalink
Add onRichSpanClick to Outline
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Nov 25, 2024
1 parent d63b539 commit 0940b42
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ fun RichEditorContent() {
OutlinedRichTextEditor(
modifier = Modifier.fillMaxWidth(),
state = outlinedRichTextState,
onRichSpanClick = { span, range, offset ->
println("clicked")
if (span is SpellCheck) {
println("Spell check clicked")
println("Range: $range")
println("Offset: $offset")
}
}
)
}

Expand Down

0 comments on commit 0940b42

Please sign in to comment.