@witchcraft/editor
Github
Issues
npm
Preparing search index...
pm/features/Blocks/commands/splitItem
splitItem
Function splitItem
splitItem
(
itemType
:
string
,
fallbackNodeTypeOrName
?:
string
|
NodeType
,
idLength
?:
number
,
)
:
(
pos
?:
number
)
=>
Command
Parameters
itemType
:
string
fallbackNodeTypeOrName
:
string
|
NodeType
= "paragraph"
When at the end of a list item, the new list item will contain a node of this type.
idLength
:
number
= 10
Returns
(
pos
?:
number
)
=>
Command
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/editor
Loading...
When at the end of a list item, the new list item will contain a node of this type.