Package-level declarations

Types

Link copied to clipboard

Plugin for suggesting fast text completions to the user in the form of a popup menu, which appears at the text cursor.

Link copied to clipboard
data class AutocompleteSuggestion(val render: @Composable RowScope.() -> Unit, val onClick: (handleInput: (TextInputCommand) -> Unit) -> Unit)

Represents one suggestion for fast completion.

Link copied to clipboard
data class SourceEditor(val sourceText: String, val sourceCursor: Int, sourceSelection: TextRange)
Link copied to clipboard
data class UndoManager(val stack: List<SourceEditor> = emptyList(), val undoSteps: Int = 0, val maxCapacity: Int = 100)
Link copied to clipboard
Link copied to clipboard
data class WysiwygEditorState(val sourceText: String, val interactiveScope: InteractiveScope = InteractiveScope(), val undoManager: UndoManager = UndoManager(), val sourceCursor: Int? = null, val sourceCursorRequest: Int? = null)

Functions

Link copied to clipboard
@Composable
fun rememberWysiwygEditorState(initialSourceText: String, vararg keys: Any?): MutableState<WysiwygEditorState>
Link copied to clipboard
@Composable
fun WysiwygEditor(editorState: WysiwygEditorState, modifier: Modifier = Modifier, selectionStyle: SelectionStyle, autocompletePlugins: List<AutocompletePlugin>, onChange: (WysiwygEditorState) -> Unit, components: @Composable WysiwygEditorScope.() -> Unit)

Flexible Wysiwyg editor for editing plaintext-based document formats, like HTML or Markdown.