Fixes clear on clicks in non react editor.

- 'click' event worked in react but not in non react.
- 'mousedown' works in both and is what the autocomplete plugin does.
- Fixes #24.