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:175
_prevSelection
private
_prevSelection:null
|BaseSelection
=null
Source
packages/framework/lit/src/utils/range-binding.ts:55
isComposing
isComposing:
boolean
=false
Source
packages/framework/lit/src/utils/range-binding.ts:54
manager
manager:
RangeManager
Source
packages/framework/lit/src/utils/range-binding.ts:25
Accessors
host
get
host():EditorHost
Returns
Source
packages/framework/lit/src/utils/range-binding.ts:21
rangeManager
get
rangeManager():RangeManager
Returns
Source
packages/framework/lit/src/utils/range-binding.ts:16
selectionManager
get
selectionManager():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:119
_onCompositionEnd()
private
_onCompositionEnd(event
):void
Parameters
• event: CompositionEvent
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:256
_onCompositionStart()
private
_onCompositionStart():void
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:178
_onNativeSelectionChanged()
private
_onNativeSelectionChanged():Promise
<void
>
Returns
Promise
<void
>
Source
packages/framework/lit/src/utils/range-binding.ts:83
_onStdSelectionChanged()
private
_onStdSelectionChanged(selections
):void
Parameters
• selections: BaseSelection
[]
Returns
void
Source
packages/framework/lit/src/utils/range-binding.ts:56
Generated using TypeDoc and typedoc-plugin-markdown.