View as Markdown

API reference: @salmonui/rich-text

removeBlocksfunction

import { removeBlocks } from '@salmonui/rich-text';
function removeBlocks(blocks: readonly Block[], ids: readonly string[]): Block[];

Removes the blocks with these ids (with their children).