@mocanvas/editor · function

useIsEditing

declare function useIsEditing(shapeId?: ShapeId): boolean

Whether a shape is being edited — its text caret is live, so its DOM body takes pointer events. With no argument: whether anything is being edited.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.