Function: insertEmbed()
ts
function insertEmbed(kind, props?): Command;Insert an embed of kind with the defaults and props: in place of an empty paragraph, after the paragraph holding the cursor (text is never split) or after a selected node. The cursor ends in the paragraph below. Fails (returns false) for an unknown kind, an unknown field or a value that is not valid, e.g. a required field left out: ask for them first.
Parameters
| Parameter | Type |
|---|---|
kind | string |
props? | EmbedProps |