fixes for compatibility with ckeditor 4.*