mcut
@mcut/editor

insertElementAtPlayhead

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / editor/src / insertElementAtPlayhead

Function: insertElementAtPlayhead()

function insertElementAtPlayhead(engine, element): string;

Defined in: packages/editor/src/timeline-operators.ts:48

Insert an element at the playhead on the topmost unlocked track with room, creating a new track when none fits. Returns the new element's id.

Parameters

engine

EditorEngine

element

TimelineElementInput

Returns

string

On this page