Text editor setText execution fix (fixes #391)