-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't clear all <p>br<p> #871
Comments
I would also like to ask how to solve this problem |
Have you Example? Screenshot? |
Everyone who came here knows this is the problem. what is the solution? |
|
I cannot make that solution work. What is that question mark character between the slashes? |
Here is my hacky solution, if it helps anyone: const updateNotes = (e) => {
console.log({e});
const newNotes = e === '<p><br></p>' ? '' : e;
setEditingPriceList({
...editingPriceList,
notes: newNotes
});
}; |
Select All and delete will leave
br
The text was updated successfully, but these errors were encountered: