How to manage empty contents and spaces from being posted in Editors of Nextjs?

Sometimes there might arise an issue whereThe problem is that if I add spaces into the editor, the Quill will generate empty paragraphs. So no content only empty paragraphs will be displayed. Inorder to resolve this issue,following code can be used. const isQuillEmpty = (value) => {   if (value.replace(/<(.|n)*?>/g, ”).trim().length === 0 && !value.includes(“<img”))… Continue reading How to manage empty contents and spaces from being posted in Editors of Nextjs?