added fixes requested at https://github.com/alohaeditor/Aloha-Editor/pull/1155