load texteditor only if user is logged in, oterwiese it will also register for public shares which will block downloads
fix if condition