2017-05-08 13:35:42 +03:00
|
|
|
{{yield (hash
|
2017-05-08 21:15:56 +03:00
|
|
|
editor=(component "gh-simplemde"
|
2019-12-13 17:20:29 +03:00
|
|
|
value=this.markdown
|
|
|
|
placeholder=this.placeholder
|
|
|
|
autofocus=this.autofocus
|
2017-05-08 13:35:42 +03:00
|
|
|
onChange=(action "updateMarkdown")
|
2017-08-02 10:05:59 +03:00
|
|
|
onFocus=(action "updateFocusState" true)
|
|
|
|
onBlur=(action "updateFocusState" false)
|
2017-05-08 13:35:42 +03:00
|
|
|
onEditorInit=(action "setEditor")
|
2019-12-13 17:20:29 +03:00
|
|
|
options=this.simpleMDEOptions)
|
|
|
|
isFullScreen=this._isFullScreen
|
|
|
|
isSplitScreen=this._isSplitScreen
|
2017-05-08 13:35:42 +03:00
|
|
|
focus=(action "focusEditor")
|
|
|
|
)}}
|
2017-05-10 18:16:36 +03:00
|
|
|
|
|
|
|
<div style="display:none">
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFileInput
|
|
|
|
@multiple={{true}}
|
|
|
|
@action={{action this.onImageFilesSelected}}
|
|
|
|
@accept={{this.imageMimeTypes}} />
|
2017-05-10 18:16:36 +03:00
|
|
|
</div>
|
2017-08-02 10:05:59 +03:00
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this._showUnsplash}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhUnsplash
|
|
|
|
@select={{action "insertUnsplashPhoto"}}
|
|
|
|
@close={{action "toggleUnsplash"}} />
|
2017-08-02 10:05:59 +03:00
|
|
|
{{/if}}
|
2017-11-24 13:41:09 +03:00
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.showMarkdownHelp}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFullscreenModal @modal="markdown-help"
|
|
|
|
@close={{action "toggleMarkdownHelp"}}
|
|
|
|
@modifier="wide" />
|
2017-11-24 13:41:09 +03:00
|
|
|
{{/if}}
|