Dynamic CKEditor with close option and location reset