5 lines
125 B
JavaScript
5 lines
125 B
JavaScript
export const hasSelection = (tiptapEditor) => {
|
|
const { from, to } = tiptapEditor.state.selection;
|
|
|
|
return from < to;
|
|
};
|