Adding support for contenteditable elements.

This solution for adding support for contenteditable elements works better than the one suggested in https://github.com/yuku-t/jquery-textcomplete/pull/38.