Developer here, since we had a click to open form at the time, we loaded the CSRF via AJAX. However that does not seem to be a good idea if we need it to work asap (and without javascript). I would look at something like SSI to put in the CSRF token to a cached page.
We have tied together parts of https://github.com/daviferreira/medium-editor, vanilla-js and jquery :)