12 lines
162 B
TypeScript
12 lines
162 B
TypeScript
export const isEmptyContentEditable = (value:string) => {
|
|
if (!value) {
|
|
return true;
|
|
}
|
|
|
|
if (value === '<br>') {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|