onContentSelectionChange

open fun onContentSelectionChange(contentId: UUID, selStart: Int, selEnd: Int, styleInfo: StyleInfo, styleWasChanged: Boolean)

Called when the cursor position/selection has changed Mainly used to update the content editing toolbar to show the proper text style for the current cursor position.

Parameters

contentId

id of the content block

styleInfo

style info of the content block

selStart

start position of the selection

selEnd

end position of the selection, also the cursor position