updated to work with CKEditor 4