Getting text, url and number directives working with touch devices