schlechtenburg/packages/paragraph/lib/contenteditable.ts

12 lines
162 B
TypeScript
Raw Normal View History

2022-09-05 19:12:20 +00:00
export const isEmptyContentEditable = (value:string) => {
if (!value) {
return true;
}
if (value === '<br>') {
return true;
}
return false;
}