2017-05-08 13:35:42 +03:00
|
|
|
{{yield (hash
|
2017-05-08 21:15:56 +03:00
|
|
|
editor=(component "gh-simplemde"
|
2017-05-08 13:35:42 +03:00
|
|
|
value=markdown
|
|
|
|
placeholder=placeholder
|
|
|
|
autofocus=autofocus
|
|
|
|
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")
|
|
|
|
onEditorDestroy=(action "destroyEditor")
|
|
|
|
options=simpleMDEOptions)
|
2017-05-08 21:15:56 +03:00
|
|
|
isFullScreen=_isFullScreen
|
|
|
|
isSplitScreen=_isSplitScreen
|
2017-05-08 13:35:42 +03:00
|
|
|
focus=(action "focusEditor")
|
|
|
|
)}}
|
2017-05-10 18:16:36 +03:00
|
|
|
|
|
|
|
<div style="display:none">
|
|
|
|
{{gh-file-input multiple=true action=(action onImageFilesSelected) accept=imageMimeTypes}}
|
|
|
|
</div>
|
2017-08-02 10:05:59 +03:00
|
|
|
|
|
|
|
{{#if _showUnsplash}}
|
|
|
|
{{gh-unsplash
|
|
|
|
insert=(action "insertUnsplashPhoto")
|
|
|
|
close=(action "toggleUnsplash")}}
|
|
|
|
{{/if}}
|