added init when closing the aloha editor