refactor CKeditor operations