@witchcraft/editor
Github
Issues
npm
Preparing search index...
pm/utils/mapSelection
mapSelection
Function mapSelection
mapSelection
(
tr
:
Transaction
,
selection
:
Pick
<
Selection
,
"$from"
|
"$to"
>
,
)
:
Pick
<
Selection
,
"$from"
|
"$to"
>
&
{
from
:
number
;
to
:
number
}
Mimicks mapping a selection for the "block selections" returned by splitIntoChunks.
Parameters
tr
:
Transaction
selection
:
Pick
<
Selection
,
"$from"
|
"$to"
>
Returns
Pick
<
Selection
,
"$from"
|
"$to"
>
&
{
from
:
number
;
to
:
number
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/editor
Loading...
Mimicks mapping a selection for the "block selections" returned by splitIntoChunks.