Skip to content

Commit

Permalink
Expose read only
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Feb 3, 2023
1 parent 651e3b7 commit afee5e2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ fun RichTextEditor(
value: RichTextValue,
onValueChange: (RichTextValue) -> Unit,
modifier: Modifier = Modifier,
textFieldStyle: RichTextFieldStyle = defaultRichTextFieldStyle()
textFieldStyle: RichTextFieldStyle = defaultRichTextFieldStyle(),
readOnly: Boolean = false,
) {
RichTextField(
modifier = modifier,
Expand All @@ -22,6 +23,7 @@ fun RichTextEditor(
onValueChange(newValue)
}
},
textFieldStyle = textFieldStyle
textFieldStyle = textFieldStyle,
readOnly = readOnly,
)
}

0 comments on commit afee5e2

Please sign in to comment.