ep_headings/static/js/index.js
function aceInitialized(hook, context){
  var editorInfo = context.editorInfo;
  editorInfo.ace_doInsertHeading = _(doInsertHeading).bind(context);
}
function aceInitialized(hook, context){
  var editorInfo = context.editorInfo;
  editorInfo.ace_doInsertHeading = _(doInsertHeading).bind(context);
}
function aceInitialized ( hook , context ) { var editorInfo = context . editorInfo ; editorInfo . ace_doInsertHeading = _ ( doInsertHeading ) . bind ( context ) ; }
Once ace is initialized, we set ace_doInsertHeading and bind it to the context
Once ace is initialized we set ace_doInsertHeading and bind it to the context