/** TipTap node name shared by all inline media (img / video / iframe). */
export const RESIZABLE_MEDIA_NODE = 'resizable-media';
/** Whether the current selection is a `resizable-media` node of the given tag. */
export const isMediaActive = (editor, tag) => !!editor?.isActive(RESIZABLE_MEDIA_NODE, { tag });
