ghostwriter
ghostwriter copied to clipboard
selectAll not working on iPhone safari
Could be cool if the function selectAll could also work on mobile devices. I have tested on iPhone 5 Safari, and it doesn't seem to work.
Otherwise, the selectAll could instead clear contents if on a mobile device, as a quick-fix.
It seems like the fix is relatively simple:
http://stackoverflow.com/questions/4067469/selecting-all-text-in-html-text-input-when-clicked
Instead of using: this.select();
Use: this.setSelectionRange(0, this.value.length);