Fix texteditor

Fixes layout issues made apparent (not caused ;) by https://github.com/owncloud/core/pull/5102

Please review @karlitschek @kabum @PVince81