mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
fb2fa06b48
no issue
* fix title input padding and placeholder weight
* 🔥 remove unused showdown-ghost dependency
* implement full screen mode via CSS rather than autonav toggle
* implement custom split pane editor preview
- replace SimpleMDE's split pane handling with our own so that we have more control over the element positioning, toggling of our custom fullscreen code, and so that the preview pane can be scrolled separately as per our old editor
* use forked version of simplemde that has the latest CodeMirror compiled
- SimpleMDE hasn't been updated for 11 months and the version of CodeMirror is baked into the SimpleMDE code, to get an up to date version I've forked and re-compiled
- pull in the unminified SimpleMDE source so that it's easier to debug in development, our asset compilation steps will take care of minifying it for production
* fix gh-markdown-editor teardown
14 lines
403 B
Handlebars
14 lines
403 B
Handlebars
{{yield (hash
|
|
editor=(component "gh-simplemde"
|
|
value=markdown
|
|
placeholder=placeholder
|
|
autofocus=autofocus
|
|
onChange=(action "updateMarkdown")
|
|
onEditorInit=(action "setEditor")
|
|
onEditorDestroy=(action "destroyEditor")
|
|
options=simpleMDEOptions)
|
|
isFullScreen=_isFullScreen
|
|
isSplitScreen=_isSplitScreen
|
|
focus=(action "focusEditor")
|
|
)}}
|