summernote: I have a problem with isEmpty to determine if the content isEmpty
IsEmpty. When i type space, the content of the $("#summernote").summernote("code")
is <p>&nbsp</p>
or <p>&nbsp;&nbsp;&nbsp;</p>
,that’s when i hit enter, the content of the $("#summernote").summernote("code")
is <p>&nbsp;&nbsp;&nbsp;</p>
or enter after entering a space,the content of the $("#summernote").summernote("code")
is <p>&nbsp;&nbsp;&nbsp;</p><p><br></p>
There is a space when the check is not empty, how should I solve, help me, thank you
@nsb @e2goon @BenJenkinson @dittos
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (7 by maintainers)
I wonder what is your check point for isEmpty?
Maybe if you want to check empty status, see below code .
hi @fujilu
isEmpty method don’t check
Because
is text node but not empty character.