editor .chain() .focus() .insertContent({ type: "imageTextBlock", attrs: { layout }, }) .createParagraphNear() .run();