This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19672|Reply: 3

[Other] Summernote is plain text? How to judge whether it is empty or not?

[Copy link]
Posted on 3/31/2017 1:00:01 PM | | | |
The editor I use is summernote.

The editor content is:



In the absence of content, the text editor exists:

"<p><br></p>"
In our opinion, this actually has no value, how to judge???

Take the text??? Then judge ????

isEmpty
Returns whether contents is empty or not.

Editing area needs <p><br></p> for focus, even if contents is empty. So summernote support this method for helping to check contents is empty.



Solution:







Previous:【2017.03】Technician System Download Collection (Win 7+Win 10)
Next:Newcomer reports
Posted on 5/18/2017 9:27:04 PM |
Can you get the plain text of summernote? Is there no html style? I used text() for some reason, and I don't know why there are no <p>line breaks between paragraphs
Posted on 12/28/2017 10:11:59 AM |
Big brother, this has a bug, the content entered in the text box, it will still be judged as empty. Are you okay with using it?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com