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