Deface the partial shared/rich_editor_javascript into admin_footer_scripts instead of admin_inside_head to ensure that the editor javascript is loaded after jQuery