You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you submit a form with empty editor it adds <div><br></div> to the POST, which is a bummer, since you can't check very efficiently if it's really empty.
The text was updated successfully, but these errors were encountered:
The reason for the <div><br></div> tags is in fact a bug fix for the case, that no container is created for the first paragraph.
So it won't be possible to remove it.
To check if the content is empty, you might want to strip all the HTML tags and check if the string is empty after doing so.
When you submit a form with empty editor it adds
<div><br></div>
to the POST, which is a bummer, since you can't check very efficiently if it's really empty.The text was updated successfully, but these errors were encountered: