fn
convertBlock
testedConvert one block by id (the gutter menu's "turn into"), keeping its inline content.
Signature
ts
export function convertBlock(blockId: string, type: string, attrs?: Attrs): Command{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
blockId | string | — |
type | string | — |
attrs? | Attrs | — |
Returns
Command