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