mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
c722c83a6e
no issue - a change in Ember 3.10's rendering has resulting in the component's element being removed before the `{{gh-markdown-editor}}`'s cleanup action is run which meant that we were trying to run `.querySelector` on `undefined` - removes the code which moved toolbar elements around because it hasn't been used since we moved to Koenig, this meant that the cleanup action could also be removed
34 lines
889 B
Handlebars
34 lines
889 B
Handlebars
{{yield (hash
|
|
editor=(component "gh-simplemde"
|
|
value=markdown
|
|
placeholder=placeholder
|
|
autofocus=autofocus
|
|
onChange=(action "updateMarkdown")
|
|
onFocus=(action "updateFocusState" true)
|
|
onBlur=(action "updateFocusState" false)
|
|
onEditorInit=(action "setEditor")
|
|
options=simpleMDEOptions)
|
|
isFullScreen=_isFullScreen
|
|
isSplitScreen=_isSplitScreen
|
|
focus=(action "focusEditor")
|
|
)}}
|
|
|
|
<div style="display:none">
|
|
{{gh-file-input
|
|
multiple=true
|
|
action=(action onImageFilesSelected)
|
|
accept=imageMimeTypes}}
|
|
</div>
|
|
|
|
{{#if _showUnsplash}}
|
|
{{gh-unsplash
|
|
select=(action "insertUnsplashPhoto")
|
|
close=(action "toggleUnsplash")}}
|
|
{{/if}}
|
|
|
|
{{#if showMarkdownHelp}}
|
|
{{gh-fullscreen-modal "markdown-help"
|
|
close=(action "toggleMarkdownHelp")
|
|
modifier="wide"}}
|
|
{{/if}}
|