My issue has to do with throwing the exception of 'targetChild should not be null' even if the entire content is cleared.
If you can kindly make room for one to be able to clear the entire content of the editor without throwing that exception, that will be fine. If there is a reason for that, kindly make it known.