If it helps, I had included this code before the ace call:

```javascript
<script type="text/javascript">
$(document).ready(function(){
  $('.ace_text-input').focus();
});
</script>
```
to get the focus in the field when the page loads. 
The same applies for the new_document.html