Improve the js loading and customize the config for ckeditor