make typeahead work with div[contenteditable]