Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
export const hasSelection = (tiptapEditor) => {
const { from, to } = tiptapEditor.state.selection;
return from < to;
};
export const clamp = (n, min, max) => Math.max(Math.min(n, max), min);