prosekit/extensions/loro
Interfaces
Section titled “Interfaces”LoroCursorOptions
Section titled “LoroCursorOptions”Properties
Section titled “Properties”-
awareness:CursorAwareness
-
getSelection?: (state:EditorState) =>Selection
-
createCursor?: (user:`${number}`) =>Element
-
createSelection?: (user:`${number}`) =>DecorationAttrs
LoroOptions
Section titled “LoroOptions”Properties
Section titled “Properties”-
doc:LoroDocType -
The Loro instance handles the state of shared data.
-
awareness:CursorAwareness -
The Awareness instance.
-
cursor?:Omit<LoroCursorOptions,"awareness"> -
Extra options for
LoroCursorPlugin.
Functions
Section titled “Functions”defineLoroCommands()
Section titled “defineLoroCommands()”-
function defineLoroCommands():LoroCommandsExtension
defineLoroCursorPlugin()
Section titled “defineLoroCursorPlugin()”-
function defineLoroCursorPlugin(options:LoroCursorOptions):PlainExtension
defineLoroKeymap()
Section titled “defineLoroKeymap()”-
function defineLoroKeymap():PlainExtension
defineLoroSyncPlugin()
Section titled “defineLoroSyncPlugin()”-
function defineLoroSyncPlugin(options:LoroSyncPluginProps):PlainExtension
defineLoroUndoPlugin()
Section titled “defineLoroUndoPlugin()”-
function defineLoroUndoPlugin(options:LoroUndoPluginProps):PlainExtension
defineLoro()
Section titled “defineLoro()”-
function defineLoro(options:LoroOptions):LoroExtension