I thought something like this would be simple, but apparently not. I'm using a paid version of the Froala Editor, and I love it. However, it needs to focus the cursor when the page loads inside the editor so I don't have to force my users to manually click it.
This is the code from their official docs, but it doesn't seem to work.
# HTML
<textarea id="task_body" autofocus="true">...</textarea>
# JavaScript
editor = $("#task_body").froalaEditor({});
editor.froalaEditor("events.focus");
All I want to do is focus the cursor in the Froala editor field when the page loads; I'd even be happy with a JS solution that calls a focus event after the page loads.