2018-01-31 00:09:46 +03:00
|
|
|
{{!-- full height content pane --}}
|
2018-05-01 15:47:13 +03:00
|
|
|
<div class="gh-koenig-editor-pane flex flex-column mih-100" onclick={{action "focusEditor"}}>
|
2018-02-28 14:44:03 +03:00
|
|
|
{{gh-textarea
|
2018-01-31 00:09:46 +03:00
|
|
|
class="gh-editor-title"
|
|
|
|
placeholder=titlePlaceholder
|
|
|
|
tabindex="1"
|
|
|
|
autoExpand=".gh-koenig-editor"
|
2018-02-28 14:44:03 +03:00
|
|
|
value=(readonly title)
|
|
|
|
input=(action "onTitleChange" value="target.value")
|
|
|
|
focus-out=(action "onTitleFocusOut")
|
2018-01-31 00:09:46 +03:00
|
|
|
keyDown=(action "onTitleKeydown")
|
|
|
|
didCreateTextarea=(action "onTitleCreated")
|
|
|
|
}}
|
2018-01-30 13:01:07 +03:00
|
|
|
|
2018-01-31 00:09:46 +03:00
|
|
|
{{koenig-editor
|
|
|
|
mobiledoc=body
|
|
|
|
placeholder=bodyPlaceholder
|
|
|
|
autofocus=bodyAutofocus
|
|
|
|
spellcheck=true
|
|
|
|
onChange=(action "onBodyChange")
|
|
|
|
didCreateEditor=(action "onEditorCreated")
|
2018-02-04 22:35:44 +03:00
|
|
|
cursorDidExitAtTop=(action "focusTitle")
|
2018-05-30 19:14:39 +03:00
|
|
|
headerOffset=headerOffset
|
|
|
|
dropTargetSelector=".gh-koenig-editor-pane"
|
2018-05-24 15:30:50 +03:00
|
|
|
scrollContainerSelector=scrollContainerSelector
|
|
|
|
scrollOffsetTopSelector=scrollOffsetTopSelector
|
|
|
|
scrollOffsetBottomSelector=scrollOffsetBottomSelector
|
2018-01-31 00:09:46 +03:00
|
|
|
}}
|
2018-05-30 19:14:39 +03:00
|
|
|
</div>
|