2018-01-31 00:09:46 +03:00
|
|
|
{{!-- full height content pane --}}
|
2018-06-20 15:11:12 +03:00
|
|
|
<div
|
|
|
|
class="gh-koenig-editor-pane flex flex-column mih-100"
|
|
|
|
onmousedown={{action "trackMousedown"}}
|
|
|
|
onmouseup={{action "focusEditor"}}
|
|
|
|
>
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhTextarea
|
|
|
|
@class="gh-editor-title"
|
|
|
|
@placeholder={{this.titlePlaceholder}}
|
|
|
|
@tabindex="1"
|
|
|
|
@autoExpand=".gh-koenig-editor"
|
|
|
|
@value={{readonly this.title}}
|
|
|
|
@input={{action "onTitleChange" value="target.value"}}
|
|
|
|
@focus-out={{action "onTitleFocusOut"}}
|
|
|
|
@keyDown={{action "onTitleKeydown"}}
|
|
|
|
@didCreateTextarea={{action "onTitleCreated"}} data-test-editor-title-input={{true}}
|
|
|
|
/>
|
2018-01-30 13:01:07 +03:00
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
<KoenigEditor
|
|
|
|
@mobiledoc={{this.body}}
|
|
|
|
@placeholder={{this.bodyPlaceholder}}
|
|
|
|
@autofocus={{this.bodyAutofocus}}
|
|
|
|
@spellcheck={{true}}
|
|
|
|
@onChange={{action "onBodyChange"}}
|
|
|
|
@didCreateEditor={{action "onEditorCreated"}}
|
|
|
|
@cursorDidExitAtTop={{action "focusTitle"}}
|
|
|
|
@headerOffset={{this.headerOffset}}
|
|
|
|
@dropTargetSelector=".gh-koenig-editor-pane"
|
|
|
|
@scrollContainerSelector={{this.scrollContainerSelector}}
|
|
|
|
@scrollOffsetTopSelector={{this.scrollOffsetTopSelector}}
|
|
|
|
@scrollOffsetBottomSelector={{this.scrollOffsetBottomSelector}}
|
|
|
|
@wordCountDidChange={{action this.onWordCountChange}}
|
2020-10-15 20:03:18 +03:00
|
|
|
@snippets={{@snippets}}
|
|
|
|
@saveSnippet={{@saveSnippet}}
|
2020-10-26 20:09:09 +03:00
|
|
|
@deleteSnippet={{@deleteSnippet}}
|
2020-01-16 18:14:03 +03:00
|
|
|
/>
|
2018-05-30 19:14:39 +03:00
|
|
|
</div>
|