MohamedRejeb / compose-rich-editor

A Rich text editor library for both Jetpack Compose and Compose Multiplatform, fully customizable, supports HTML and Markdown.
https://mohamedrejeb.github.io/compose-rich-editor/
Apache License 2.0
1.17k stars 77 forks source link

no onTextChange available #407

Closed ahmedhegazydev closed 2 weeks ago

ahmedhegazydev commented 2 weeks ago

i want on TextChange

MohamedRejeb commented 2 weeks ago

Hi You can listen to text changes using LaunchedEffect:

val state = rememberRichTextState()

LaunchedEffect(state.annotatedString) {
    // called on each text change
}