added condition for CKEditor