BlockSuite API Documentation / @blocksuite/lit / RangeBinding
Class: RangeBinding
Two-way binding between native range and text selection
Constructors
new RangeBinding(manager)
new RangeBinding(
manager):RangeBinding
Parameters
• manager: RangeManager
Returns
Source
packages/framework/lit/src/utils/range-binding.ts:25
Properties
_compositionStartCallback
private_compositionStartCallback:null| (event) =>Promise<void> =null
Source
packages/framework/lit/src/utils/range-binding.ts:187
_prevTextSelection
private_prevTextSelection:null|TextSelection=null
Source
packages/framework/lit/src/utils/range-binding.ts:58
isComposing
isComposing:
boolean=false
Source
packages/framework/lit/src/utils/range-binding.ts:57
manager
manager:
RangeManager
Source
packages/framework/lit/src/utils/range-binding.ts:25
Accessors
host
gethost():EditorHost
Returns
Source
packages/framework/lit/src/utils/range-binding.ts:21
rangeManager
getrangeManager():RangeManager
Returns
Source
packages/framework/lit/src/utils/range-binding.ts:16
selectionManager
getselectionManager():SelectionManager
Returns
Source
packages/framework/lit/src/utils/range-binding.ts:12
Methods
_onBeforeInput()
private_onBeforeInput(event):void
Parameters
• event: InputEvent
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:131
_onCompositionEnd()
private_onCompositionEnd(event):void
Parameters
• event: CompositionEvent
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:268
_onCompositionStart()
private_onCompositionStart():void
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:190
_onNativeSelectionChanged()
private_onNativeSelectionChanged():Promise<void>
Returns
Promise<void>
Source
packages/framework/lit/src/utils/range-binding.ts:86
_onStdSelectionChanged()
private_onStdSelectionChanged(selections):void
Parameters
• selections: BaseSelection[]
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:59
Generated using TypeDoc and typedoc-plugin-markdown.