Ghost/ghost/admin/app/templates/components/gh-cm-editor.hbs
Kevin Ansfield 2d8b3039d1 🎨 Improved code injection loading behaviour on slow connections (#935)
closes https://github.com/TryGhost/Ghost/issues/9249
- in `{{gh-cm-editor}}` display a standard textarea in place of the CodeMirror editor whilst CodeMirror assets are loading in the background, textarea will be upgraded to a CodeMirror editor when loading finishes
- update styles so that the switch from plain textarea to CodeMirror is not too jarring
2018-01-02 18:29:03 +00:00

5 lines
229 B
Handlebars

{{!-- display a standard textarea whilst waiting for CodeMirror to load/initialize --}}
{{#if isInitializingCodemirror}}
{{gh-textarea class="gh-cm-editor-textarea" value=_value update=(action 'updateFromTextarea')}}
{{/if}}