update from jquery-textcomplete and solve contenteditable caret problem

hey @fraserxu,
I removed your $rootScope.$apply because I think it's not needed anymore because of the "trigger('input')" .. can you please test and verify that! thank you :)