Fixed #210.
 - create new link when range collapsed (FF). Firefox also doesn't support create a new link.
 - focus editable when dialog closed.
 - use `one` instead of `on` for dialog handlers.