Fix select all on focus of contenteditable

The element sometimes is not selected correctly when it is focused.
This commit changes the timeout period from 1 to 50.
    
In fact, this should be done with a callback but this problem is not critical :p