mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
2d8b3039d1
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
5 lines
229 B
Handlebars
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}}
|