move textedit url parsing to its own small module