New language api and some fixes

Hi, I adapted your plugin to new version's language api and fixed bug because of which sometimes emoticons were inserted in start of redactor area.