schlechtenburg/packages/paragraph/lib/contenteditable.ts

12 lines
162 B
TypeScript

export const isEmptyContentEditable = (value:string) => {
if (!value) {
return true;
}
if (value === '<br>') {
return true;
}
return false;
}