I want to handle document just like the ‘string.trim()’ function.
" abc ".trim() = “abc”
I made a recursive method to delete the paragraphs with empty text before and after the document.But if it has image it will be remove also.I can judge if there is a shape node.
But maybe it has another Node which text’s length is empty? How can I solve it.