refactor ckeditor config for typeahead