Skip to content

Function: insertImage() ​

ts
function insertImage(attrs): Command;

Insert an image at the selection. Returns false when the schema refuses the src (unsafe protocol, SVG data URL, base64 not enabled). Requires advancedSchema().

Parameters ​

ParameterType
attrsImageAttrs

Returns ​

Command